aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/armv7.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/armv7.rs b/src/armv7.rs
index f23d0c9..c2c232b 100644
--- a/src/armv7.rs
+++ b/src/armv7.rs
@@ -2606,6 +2606,7 @@ impl Decoder<ARMv7> for InstDecoder {
];
}
+ Opcode::TST | Opcode::TEQ |
Opcode::CMP | Opcode::CMN => {
if self.should_is_must {
if Rd != 0 {
@@ -2731,6 +2732,8 @@ impl Decoder<ARMv7> for InstDecoder {
inst.opcode = Opcode::ADR;
}
match opcode {
+ // TST/TEQ (immediate)
+ 0b1000 | 0b1001 |
// CMP/CMN (immediate)
0b1010 | 0b1011 => {
// According to A8-368, there are 4 bits right above the immediate that