[AArch64][llvm] Fix encoding for stshh instruction (#189588)

The encoding for `stshh` was incorrect, and has been fixed. This
has been checked against the Arm ARM.
This commit is contained in:
Jonathan Thackray 2026-03-31 14:56:16 +01:00 committed by Cullen Rhodes
parent 4250a0fc5d
commit cd7f7379a0
2 changed files with 5 additions and 5 deletions

View file

@ -1850,7 +1850,7 @@ class STSHHI
: SimpleSystemI<0, (ins phint_op:$policy), "stshh", "\t$policy", []>,
Sched<[WriteHint]> {
bits<3> policy;
let Inst{20-12} = 0b000011001;
let Inst{20-12} = 0b000110010;
let Inst{11-8} = 0b0110;
let Inst{7-5} = policy;
}

View file

@ -14,12 +14,12 @@
stshh keep
// CHECK-INST: stshh keep
// CHECK-ENCODING: encoding: [0x1f,0x96,0x01,0xd5]
// CHECK-ENCODING: encoding: [0x1f,0x26,0x03,0xd5]
// CHECK-ERROR: error: instruction requires: pcdphint
// CHECK-UNKNOWN: d501961f msr S0_1_C9_C6_0, xzr
// CHECK-UNKNOWN: d503261f hint #0x30
stshh strm
// CHECK-INST: stshh strm
// CHECK-ENCODING: encoding: [0x3f,0x96,0x01,0xd5]
// CHECK-ENCODING: encoding: [0x3f,0x26,0x03,0xd5]
// CHECK-ERROR: error: instruction requires: pcdphint
// CHECK-UNKNOWN: d501963f msr S0_1_C9_C6_1, xzr
// CHECK-UNKNOWN: d503263f hint #0x31