diff options
Diffstat (limited to 'sim/testsuite/d30v-elf/br-bsr.S')
-rw-r--r-- | sim/testsuite/d30v-elf/br-bsr.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sim/testsuite/d30v-elf/br-bsr.S b/sim/testsuite/d30v-elf/br-bsr.S new file mode 100644 index 0000000..7629f97 --- /dev/null +++ b/sim/testsuite/d30v-elf/br-bsr.S @@ -0,0 +1,12 @@ + # verify that the return address is set correctly + add r2, r0, 1 + add r3, r0, dest1 + sub r3, r3, off1 +off1: + bsr r3 || nop +ret1: + + .align 5 +dest1: + sub r2, r62, ret1 + .long 0x0e000004, 0x00f00000 |