isa: add `RC` modifier to the `xor` instruction

This commit is contained in:
InusualZ 2022-05-31 19:36:21 -04:00
parent 49673468fc
commit a9ae0cb8a1
3 changed files with 9 additions and 1 deletions

View File

@ -4807,7 +4807,13 @@ impl Ins {
Opcode::Tlbsync => String::new(),
Opcode::Tw => String::new(),
Opcode::Twi => String::new(),
Opcode::Xor => String::new(),
Opcode::Xor => {
let mut s = String::with_capacity(4);
if self.bit(31usize) {
s.push('.');
}
s
}
Opcode::Xori => String::new(),
Opcode::Xoris => String::new(),
}

View File

@ -959,6 +959,7 @@ fn test_ins_sync() {
#[test]
fn test_ins_xor() {
assert_asm!(0x7C052A78, "xor r5, r0, r5");
assert_asm!(0x7D275279, "xor. r7, r9, r10");
}
#[test]

View File

@ -1926,6 +1926,7 @@ opcodes:
desc: XOR
bitmask: 0xfc0007fe
pattern: 0x7c000278
modifiers: [ Rc ]
args: [ rA, rS, rB ]
defs: [ rA ]
uses: [ rS, rB ]