isa: add `RC` modifier to the `xor` instruction
This commit is contained in:
parent
49673468fc
commit
a9ae0cb8a1
|
@ -4807,7 +4807,13 @@ impl Ins {
|
||||||
Opcode::Tlbsync => String::new(),
|
Opcode::Tlbsync => String::new(),
|
||||||
Opcode::Tw => String::new(),
|
Opcode::Tw => String::new(),
|
||||||
Opcode::Twi => 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::Xori => String::new(),
|
||||||
Opcode::Xoris => String::new(),
|
Opcode::Xoris => String::new(),
|
||||||
}
|
}
|
||||||
|
|
|
@ -959,6 +959,7 @@ fn test_ins_sync() {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_ins_xor() {
|
fn test_ins_xor() {
|
||||||
assert_asm!(0x7C052A78, "xor r5, r0, r5");
|
assert_asm!(0x7C052A78, "xor r5, r0, r5");
|
||||||
|
assert_asm!(0x7D275279, "xor. r7, r9, r10");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in New Issue