isa: fix `rlwinm`'s mnemonic `slwi` using `ME` instead of `SH` as arg
This commit is contained in:
parent
a9ae0cb8a1
commit
86e081fdb2
|
@ -5843,7 +5843,7 @@ impl Ins {
|
|||
args: vec![
|
||||
Argument::GPR(GPR(((self.code >> 16u8) & 0x1f) as _)),
|
||||
Argument::GPR(GPR(((self.code >> 21u8) & 0x1f) as _)),
|
||||
Argument::OpaqueU(OpaqueU(((self.code >> 1u8) & 0x1f) as _)),
|
||||
Argument::OpaqueU(OpaqueU(((self.code >> 11u8) & 0x1f) as _)),
|
||||
],
|
||||
ins: self,
|
||||
};
|
||||
|
|
|
@ -784,6 +784,9 @@ fn test_ins_rlwimi() {
|
|||
fn test_ins_rlwinm() {
|
||||
assert_asm!(0x54000423, "rlwinm. r0, r0, 0, 16, 17");
|
||||
assert_asm!(0x54000432, "rlwinm r0, r0, 0, 16, 25");
|
||||
|
||||
// mnemonics
|
||||
assert_asm!(0x57E5103A, "slwi r5, r31, 2");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in New Issue