From 5b10f09ea1269133a6aa9f7237be504ecfd27378 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Sat, 28 Mar 2015 21:12:03 +0200 Subject: [PATCH] fix test --- test/arm/test_move.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/arm/test_move.rb b/test/arm/test_move.rb index 9309bcb0..e3a5421e 100644 --- a/test/arm/test_move.rb +++ b/test/arm/test_move.rb @@ -35,14 +35,15 @@ class TestMoves < MiniTest::Test def test_constant_small # like test_mov const = Virtual::ObjectConstant.new const.set_position( 13 ) # 13 = 5 + 8 , 8 for the arm pipeline offset, gets subtracted - code = @machine.mov :r1 , const + code = @machine.mov :r1 , 5 code.set_position(0) - assert_code code , :mov , [0x05,0x10,0xaf,0xe3] #e3 ef 10 05 + #TODO check this in decompile + assert_code code , :mov , [0x05,0x10,0xa0,0xe3] #e3 ef 10 05 end def test_constant_big # like test_mov_big const = Virtual::ObjectConstant.new const.set_position( 0x222 ) - code = @machine.mov :r0 , const + code = @machine.mov :r0 , 0x222 code.set_position(0) begin # mov 512(0x200) = e3 a0 0c 02 add 34(0x22) = e2 80 00 22 assert_code code , :mov , [ 0x02,0x0c,0xa0,0xe3 , 0x22,0x00,0x80,0xe2]