diff options
Diffstat (limited to 'sim/testsuite/cris/asm/addswpc.ms')
-rw-r--r-- | sim/testsuite/cris/asm/addswpc.ms | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sim/testsuite/cris/asm/addswpc.ms b/sim/testsuite/cris/asm/addswpc.ms new file mode 100644 index 00000000000..a7ac754caac --- /dev/null +++ b/sim/testsuite/cris/asm/addswpc.ms @@ -0,0 +1,61 @@ +# mach: crisv3 crisv8 crisv10 +# output: 7\n + +# Test that the special case adds.w [pc+rN.w],pc works. + + .include "testutils.inc" + start +x: + moveq 0,r3 + ba xy + moveq 5,r2 + +ok: + moveq 7,r3 + dumpr3 + quit + +xy: + adds.w [pc+r2.w],pc +y: + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word ok-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y + .word x0-y +x0: + quit |