diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index a08dc3c9e3..0f76075f9f 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2001-06-08 H.J. Lu + + * gas/mips/elf-jal.d: New file. + + * gas/mips/mips.exp: Run "elf-jal" instead of "jal" for ELF. + 2001-06-08 Alan Modra * 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 index 0000000000..345dc7a5df --- /dev/null +++ b/gas/testsuite/gas/mips/elf-jal.d @@ -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+ +[ ]*10: (MIPS_JMP|MIPS_JMP|JMPADDR|R_MIPS_26) text_label +0+0014 <[^>]*> nop +0+0018 <[^>]*> jal 0+ +[ ]*18: (MIPS_JMP|JMPADDR|R_MIPS_26) external_text_label +0+001c <[^>]*> nop +0+0020 <[^>]*> j 0+ +[ ]*20: (MIPS_JMP|JMPADDR|R_MIPS_26) text_label +0+0024 <[^>]*> nop +0+0028 <[^>]*> j 0+ +[ ]*28: (MIPS_JMP|JMPADDR|R_MIPS_26) external_text_label +0+002c <[^>]*> nop diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index aedaf90e05..9a124641c5 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -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" }