aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2020-02-17 21:01:06 -0800
committeriximeow <me@iximeow.net>2020-02-17 21:01:06 -0800
commit43f38937cfcae8bc4eaf95acfc85ed50fb9a07a3 (patch)
tree0d7413270a8570c0779a6997295f8218560b2120 /test
parent61541d356e6c9d378a85697778685b410fcbee1b (diff)
strh/ldrh/strht/ldrht and some misc cleanup
Diffstat (limited to 'test')
-rw-r--r--test/armv7.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/armv7.rs b/test/armv7.rs
index 59f6000..a8edc70 100644
--- a/test/armv7.rs
+++ b/test/armv7.rs
@@ -60,7 +60,7 @@ fn test_decode_str_ldr() {
opcode: Opcode::STR(false, true, true),
operands: [
Operand::Reg(Reg::from_u8(2)),
- Operand::RegDerefPostindexOffset(Reg::from_u8(13), 4),
+ Operand::RegDerefPostindexOffset(Reg::from_u8(13), 4, false),
Operand::Nothing,
Operand::Nothing,
],
@@ -74,7 +74,7 @@ fn test_decode_str_ldr() {
opcode: Opcode::STR(false, true, true),
operands: [
Operand::Reg(Reg::from_u8(0)),
- Operand::RegDerefPostindexOffset(Reg::from_u8(13), 4),
+ Operand::RegDerefPostindexOffset(Reg::from_u8(13), 4, false),
Operand::Nothing,
Operand::Nothing,
],
@@ -135,7 +135,7 @@ fn test_synchronization() {
);
test_display(
[0x9f, 0x2f, 0xd4, 0xe1],
- "ldreb r2, [r4]"
+ "ldrexb r2, [r4]"
);
test_display(
[0x9f, 0x2f, 0xe4, 0xe1],
@@ -200,7 +200,7 @@ fn test_decode_pop() {
opcode: Opcode::LDR(true, false, false),
operands: [
Operand::Reg(Reg::from_u8(1)),
- Operand::RegDerefPostindexOffset(Reg::from_u8(13), 0x4),
+ Operand::RegDerefPostindexOffset(Reg::from_u8(13), 0x4, true),
Operand::Nothing,
Operand::Nothing,
],