diff options
Diffstat (limited to 'sim/testsuite/cr16/bcc.cgs')
-rw-r--r-- | sim/testsuite/cr16/bcc.cgs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sim/testsuite/cr16/bcc.cgs b/sim/testsuite/cr16/bcc.cgs new file mode 100644 index 0000000..b0bee2b --- /dev/null +++ b/sim/testsuite/cr16/bcc.cgs @@ -0,0 +1,22 @@ +# cr16 testcase for beq disp16 +# mach(): cr16 + + .include "testutils.inc" + + start + + .global beq +beq: + mvi_h_condbit 0 + movw $12, r4 + movw $10, r5 + cmpw r4, r5 + bcc ok +not_ok: + fail +ok: + movw $11, r5 + cmpw r4, r5 + beq not_ok + + pass |