summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/jalbal.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mips-elf/jalbal.s')
-rw-r--r--ld/testsuite/ld-mips-elf/jalbal.s21
1 files changed, 21 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/jalbal.s b/ld/testsuite/ld-mips-elf/jalbal.s
new file mode 100644
index 0000000..acffabb
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/jalbal.s
@@ -0,0 +1,21 @@
+# Test that jal gets converted to bal on the RM9000 when it is in range.
+ .text
+ .global s1
+ .type s1,@function
+ .set noreorder
+s1:
+ jal s3
+ nop
+ jal s3
+s2:
+ nop
+ .space 0x1fff8
+s3:
+ jal s2
+ nop
+ jal s2
+ nop
+
+# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
+ .align 2
+ .space 8