2001-06-08 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Jun 2001 03:28:32 +0000 (03:28 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Jun 2001 03:28:32 +0000 (03:28 +0000)
* gas/mips/elf-jal.d: New file.

* gas/mips/mips.exp: Run "elf-jal" instead of "jal" for ELF.

gas/testsuite/ChangeLog
gas/testsuite/gas/mips/elf-jal.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp

index a08dc3c9e30f4645cb978955feddbd5adc602d73..0f76075f9f950a52bae3af4bc83ff528c7322eef 100644 (file)
@@ -1,3 +1,9 @@
+2001-06-08  H.J. Lu  <hjl@gnu.org>
+
+       * gas/mips/elf-jal.d: New file.
+
+       * gas/mips/mips.exp: Run "elf-jal" instead of "jal" for ELF.
+
 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
 
        * gas/elf/elf.exp (run_list_test): Undo $readelf change in 2001-06-07.
diff --git a/gas/testsuite/gas/mips/elf-jal.d b/gas/testsuite/gas/mips/elf-jal.d
new file mode 100644 (file)
index 0000000..345dc7a
--- /dev/null
@@ -0,0 +1,25 @@
+#objdump: -dr --prefix-addresses -mmips:4000
+#name: MIPS jal
+#source: jal.s
+
+# Test the jal macro.
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+0+0000 <[^>]*> jalr    t9
+0+0004 <[^>]*> nop
+0+0008 <[^>]*> jalr    a0,t9
+0+000c <[^>]*> nop
+0+0010 <[^>]*> jal     0+ <text_label>
+[      ]*10: (MIPS_JMP|MIPS_JMP|JMPADDR|R_MIPS_26)     text_label
+0+0014 <[^>]*> nop
+0+0018 <[^>]*> jal     0+ <text_label>
+[      ]*18: (MIPS_JMP|JMPADDR|R_MIPS_26)      external_text_label
+0+001c <[^>]*> nop
+0+0020 <[^>]*> j       0+ <text_label>
+[      ]*20: (MIPS_JMP|JMPADDR|R_MIPS_26)      text_label
+0+0024 <[^>]*> nop
+0+0028 <[^>]*> j       0+ <text_label>
+[      ]*28: (MIPS_JMP|JMPADDR|R_MIPS_26)      external_text_label
+0+002c <[^>]*> nop
index aedaf90e0538b0be4c02bebaefb2fe8e32eba036..9a124641c595662d1dc7ccc80997aaac49718808 100644 (file)
@@ -28,7 +28,11 @@ if { [istarget mips*-*-*] } then {
     run_dump_test "bltu"
     if !$ilocks { run_dump_test "div" } else { run_dump_test "div-ilocks" }
     run_dump_test "dli"
-    run_dump_test "jal"
+    if $svr4pic {
+       run_dump_test "elf-jal"
+    } else {
+       run_dump_test "jal"
+    }
     if $svr4pic { run_dump_test "jal-svr4pic" }
     if $svr4pic { run_dump_test "jal-xgot" }
     if $empic { run_dump_test "jal-empic" }