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.
This commit is contained in:
parent
ea4ff978a2
commit
7388e440ec
|
@ -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.
|
||||
|
|
|
@ -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
|
|
@ -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" }
|
||||
|
|
Loading…
Reference in New Issue