aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-08-04 13:24:42 -0700
committeriximeow <me@iximeow.net>2020-01-12 17:28:07 -0800
commit964ca6566c61b0c7cd48d8801c74d1b4dfe0b7a2 (patch)
treebbf312f42cbf877880f49f6e54294831cffe0638
parent0edc3442d065ea1572e8a01150437a3bef04057b (diff)
add regression test
-rw-r--r--test/armv7.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/armv7.rs b/test/armv7.rs
index c76cb4a..6fd46c3 100644
--- a/test/armv7.rs
+++ b/test/armv7.rs
@@ -163,6 +163,15 @@ fn test_decode_mov() {
#[test]
fn test_decode_arithmetic() {
test_decode(
+ [0x58, 0x37, 0x01, 0x40],
+ Instruction {
+ condition: ConditionCode::MI,
+ opcode: AND,
+ operands: Operands::ThreeOperands(3, 1, 8),
+ s: false
+ }
+ );
+ test_decode(
[0x03, 0x30, 0x8f, 0xe0],
Instruction {
condition: ConditionCode::AL,