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 _)),
|
Field::crfS(CRField(((self.code >> 18u8) & 0x7) as _)),
|
||||||
],
|
],
|
||||||
Opcode::Mcrxr => vec![Field::crfD(CRField(((self.code >> 23u8) & 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::Mffs => vec![Field::frD(FPR(((self.code >> 21u8) & 0x1f) as _))],
|
||||||
Opcode::Mfmsr => vec![Field::rD(GPR(((self.code >> 21u8) & 0x1f) as _))],
|
Opcode::Mfmsr => vec![Field::rD(GPR(((self.code >> 21u8) & 0x1f) as _))],
|
||||||
Opcode::Mfspr => vec![
|
Opcode::Mfspr => vec![
|
||||||
|
@ -2562,7 +2562,7 @@ impl Ins {
|
||||||
Field::crfD(CRField(((self.code >> 23u8) & 0x7) as _)),
|
Field::crfD(CRField(((self.code >> 23u8) & 0x7) as _)),
|
||||||
Field::xer,
|
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::Mffs => vec![Field::frD(FPR(((self.code >> 21u8) & 0x1f) as _))],
|
||||||
Opcode::Mfmsr => vec![Field::rD(GPR(((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 _))],
|
Opcode::Mfspr => vec![Field::rD(GPR(((self.code >> 21u8) & 0x1f) as _))],
|
||||||
|
|
|
@ -483,7 +483,7 @@ fn test_ins_lwzx() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_ins_mfcr() {
|
fn test_ins_mfcr() {
|
||||||
assert_asm!(0x7C000026, "mfcr cr0");
|
assert_asm!(0x7C000026, "mfcr r0");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
4
isa.yaml
4
isa.yaml
|
@ -1063,8 +1063,8 @@ opcodes:
|
||||||
desc: Move from Condition Register
|
desc: Move from Condition Register
|
||||||
bitmask: 0xfc1fffff
|
bitmask: 0xfc1fffff
|
||||||
pattern: 0x7c000026
|
pattern: 0x7c000026
|
||||||
args: [ crfD ]
|
args: [ rD ]
|
||||||
defs: [ crfD ]
|
defs: [ rD ]
|
||||||
|
|
||||||
- name: mffs
|
- name: mffs
|
||||||
desc: Move from FPSCR
|
desc: Move from FPSCR
|
||||||
|
|
Loading…
Reference in New Issue