diff options
author | Michael Walle <michael@walle.cc> | 2012-12-14 18:13:06 +0100 |
---|---|---|
committer | Michael Walle <michael@walle.cc> | 2013-03-18 19:40:34 +0100 |
commit | 6036e9d87e73c511fef48a3c06267f92e613fca9 (patch) | |
tree | 5afb7604efd12a97cf7f257fdc660799fc2134c8 /tests/tcg/lm32/test_cmpgui.S | |
parent | 608a03c1df217f2111765575a91c6448218369a7 (diff) |
tests: tcg: lm32: add more test cases
Esp. for testing zero/sign extend in compare operations.
Signed-off-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'tests/tcg/lm32/test_cmpgui.S')
-rw-r--r-- | tests/tcg/lm32/test_cmpgui.S | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/tcg/lm32/test_cmpgui.S b/tests/tcg/lm32/test_cmpgui.S index 759bb64b3c..dd94001492 100644 --- a/tests/tcg/lm32/test_cmpgui.S +++ b/tests/tcg/lm32/test_cmpgui.S @@ -35,7 +35,7 @@ check_r3 1 test_name CMPGUI_7 mvi r1, -1 cmpgui r3, r1, 0xffff -check_r3 0 +check_r3 1 test_name CMPGUI_8 mvi r3, 0 @@ -52,4 +52,19 @@ mvi r3, 0 cmpgui r3, r3, 0 check_r3 0 +test_name CMPGUI_11 +mvi r1, 0 +cmpgui r3, r1, 0x8000 +check_r3 0 + +test_name CMPGUI_12 +mvi r1, -1 +cmpgui r3, r1, 0x8000 +check_r3 1 + +test_name CMPGUI_13 +ori r1, r0, 0x8000 +cmpgui r3, r1, 0x8000 +check_r3 0 + end |