aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/lm32/test_cmpgi.S
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/lm32/test_cmpgi.S')
-rw-r--r--tests/tcg/lm32/test_cmpgi.S15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/tcg/lm32/test_cmpgi.S b/tests/tcg/lm32/test_cmpgi.S
index 1f622d2900..21695f97ab 100644
--- a/tests/tcg/lm32/test_cmpgi.S
+++ b/tests/tcg/lm32/test_cmpgi.S
@@ -52,4 +52,19 @@ mvi r3, 0
cmpgi r3, r3, 0
check_r3 0
+test_name CMPGI_11
+mvi r1, 0
+cmpgi r3, r1, -32768
+check_r3 1
+
+test_name CMPGI_12
+mvi r1, -1
+cmpgi r3, r1, -32768
+check_r3 1
+
+test_name CMPGI_13
+mvi r1, -32768
+cmpgi r3, r1, -32768
+check_r3 0
+
end