[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 GitHub
parent 5a89da7d13
commit aca71454e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -1876,7 +1876,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

@ -10,11 +10,11 @@
stshh keep
// CHECK-INST: stshh keep
// CHECK-ENCODING: encoding: [0x1f,0x96,0x01,0xd5]
// CHECK-ENCODING: encoding: [0x1f,0x26,0x03,0xd5]
stshh strm
// CHECK-INST: stshh strm
// CHECK-ENCODING: encoding: [0x3f,0x96,0x01,0xd5]
// CHECK-ENCODING: encoding: [0x3f,0x26,0x03,0xd5]
prfm ir, [x0]
// CHECK-INST: prfm ir, [x0]