isa: fix `mfcr` argument
This commit is contained in:
parent
65b0966a97
commit
7167807402
|
@ -1823,7 +1823,7 @@ impl Ins {
|
|||
Field::crfS(CRField(((self.code >> 18u8) & 0x7) as _)),
|
||||
],
|
||||
Opcode::Mcrxr => vec![Field::crfD(CRField(((self.code >> 23u8) & 0x7) as _))],
|
||||
Opcode::Mfcr => vec![Field::crfD(CRField(((self.code >> 23u8) & 0x7) as _))],
|
||||
Opcode::Mfcr => vec![Field::rD(GPR(((self.code >> 21u8) & 0x1f) as _))],
|
||||
Opcode::Mffs => vec![Field::frD(FPR(((self.code >> 21u8) & 0x1f) as _))],
|
||||
Opcode::Mfmsr => vec![Field::rD(GPR(((self.code >> 21u8) & 0x1f) as _))],
|
||||
Opcode::Mfspr => vec![
|
||||
|
@ -2562,7 +2562,7 @@ impl Ins {
|
|||
Field::crfD(CRField(((self.code >> 23u8) & 0x7) as _)),
|
||||
Field::xer,
|
||||
],
|
||||
Opcode::Mfcr => vec![Field::crfD(CRField(((self.code >> 23u8) & 0x7) as _))],
|
||||
Opcode::Mfcr => vec![Field::rD(GPR(((self.code >> 21u8) & 0x1f) as _))],
|
||||
Opcode::Mffs => vec![Field::frD(FPR(((self.code >> 21u8) & 0x1f) as _))],
|
||||
Opcode::Mfmsr => vec![Field::rD(GPR(((self.code >> 21u8) & 0x1f) as _))],
|
||||
Opcode::Mfspr => vec![Field::rD(GPR(((self.code >> 21u8) & 0x1f) as _))],
|
||||
|
|
|
@ -483,7 +483,7 @@ fn test_ins_lwzx() {
|
|||
|
||||
#[test]
|
||||
fn test_ins_mfcr() {
|
||||
assert_asm!(0x7C000026, "mfcr cr0");
|
||||
assert_asm!(0x7C000026, "mfcr r0");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in New Issue