diff options
Diffstat (limited to 'sim/testsuite/sim/cris/asm/test.ms')
-rw-r--r-- | sim/testsuite/sim/cris/asm/test.ms | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/sim/testsuite/sim/cris/asm/test.ms b/sim/testsuite/sim/cris/asm/test.ms new file mode 100644 index 00000000000..93c4f591f40 --- /dev/null +++ b/sim/testsuite/sim/cris/asm/test.ms @@ -0,0 +1,80 @@ +# mach: crisv0 crisv3 crisv8 crisv10 crisv32 +# output: 1\n + + .include "testutils.inc" + .data +x: + .dword 0,2,-1,0x80000000,0x5432f789 + .word 0,2,-1,0xffff,0xf789 + .byte 0,2,0xff,0x89 + + start + clearf nzvc + moveq -1,r3 + move.d x,r5 + setf vc + test.d [r5+] + test_cc 0 1 0 0 + + setf vc + test.d [r5] + test_cc 0 0 0 0 + + addq 4,r5 + + setf vc + test.d [r5+] + test_cc 1 0 0 0 + + setf vc + test.d [r5+] + test_cc 1 0 0 0 + + setf vc + test.d [r5+] + test_cc 0 0 0 0 + + setf vc + test.w [r5+] + test_cc 0 1 0 0 + + setf vc + test.w [r5] + test_cc 0 0 0 0 + + addq 2,r5 + + setf vc + test.w [r5+] + test_cc 1 0 0 0 + + setf vc + test.w [r5+] + test_cc 1 0 0 0 + + setf vc + test.w [r5+] + test_cc 1 0 0 0 + + setf vc + test.b [r5] + test_cc 0 1 0 0 + + addq 1,r5 + + setf vc + test.b [r5+] + test_cc 0 0 0 0 + + setf vc + test.b [r5+] + test_cc 1 0 0 0 + + setf vc + test.b [r5] + test_cc 1 0 0 0 + + moveq 1,r3 + dumpr3 + + quit |