diff options
Diffstat (limited to 'sim/testsuite/m32r/cmpui.cgs')
-rw-r--r-- | sim/testsuite/m32r/cmpui.cgs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sim/testsuite/m32r/cmpui.cgs b/sim/testsuite/m32r/cmpui.cgs new file mode 100644 index 00000000000..aa30207d933 --- /dev/null +++ b/sim/testsuite/m32r/cmpui.cgs @@ -0,0 +1,22 @@ +# m32r testcase for cmpui $src2,#$simm16 +# mach(): m32r m32rx + + .include "testutils.inc" + + start + + .global cmpui +cmpui: + mvi_h_condbit 0 + mvi_h_gr r4, 1 + cmpui r4, #2 + bc ok +not_ok: + fail +ok: + mvi_h_condbit 1 + mvi_h_gr r4, -1 + cmpui r4, #2 + bc not_ok + + pass |