aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/jalbal.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mips-elf/jalbal.d')
-rw-r--r--ld/testsuite/ld-mips-elf/jalbal.d24
1 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/jalbal.d b/ld/testsuite/ld-mips-elf/jalbal.d
new file mode 100644
index 0000000..9b50754
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/jalbal.d
@@ -0,0 +1,24 @@
+#name: jal to bal
+#source: jalbal.s
+#as: -EB -n32 -march=rm9000
+#ld: -e s1 -Ttext 0x100000a0
+#objdump: -d
+
+.*file format elf.*mips.*
+
+Disassembly of section \.text:
+
+.* <s1>:
+.* 0c00802a jal .*100200a8 <s3>
+.* 00000000 nop
+.* 04117fff bal .*100200a8 <s3>
+
+.* <s2>:
+.* \.\.\.
+
+.* <s3>:
+.* 04118000 bal .*100000ac <s2>
+.* 00000000 nop
+.* 0c00002b jal .*100000ac <s2>
+.* 00000000 nop
+.* \.\.\.