isa: fix `srw` argument order
This commit is contained in:
parent
2364d17751
commit
49673468fc
|
@ -2189,8 +2189,8 @@ impl Ins {
|
|||
Field::SH(OpaqueU(((self.code >> 11u8) & 0x1f) as _)),
|
||||
],
|
||||
Opcode::Srw => vec![
|
||||
Field::rS(GPR(((self.code >> 21u8) & 0x1f) as _)),
|
||||
Field::rA(GPR(((self.code >> 16u8) & 0x1f) as _)),
|
||||
Field::rS(GPR(((self.code >> 21u8) & 0x1f) as _)),
|
||||
Field::rB(GPR(((self.code >> 11u8) & 0x1f) as _)),
|
||||
],
|
||||
Opcode::Stb => vec![
|
||||
|
|
|
@ -816,6 +816,7 @@ fn test_ins_srawi() {
|
|||
#[test]
|
||||
fn test_ins_srw() {
|
||||
assert_asm!(0x7C001C30, "srw r0, r0, r3");
|
||||
assert_asm!(0x7C600430, "srw r0, r3, r0");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in New Issue