From 43f38937cfcae8bc4eaf95acfc85ed50fb9a07a3 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 17 Feb 2020 21:01:06 -0800 Subject: strh/ldrh/strht/ldrht and some misc cleanup --- test/armv7.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/armv7.rs') 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, ], -- cgit v1.1