diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-06-09 03:28:32 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-06-09 03:28:32 +0000 |
commit | 7388e440ece9829c4a8f750adcaccac579a4a410 (patch) | |
tree | 00512c583773ea079c47f3c4c8a3c638307b118d /gas/testsuite | |
parent | ea4ff978a21b6fbc649e9e50454e8aad41fdf471 (diff) | |
download | gdb-7388e440ece9829c4a8f750adcaccac579a4a410.zip gdb-7388e440ece9829c4a8f750adcaccac579a4a410.tar.gz gdb-7388e440ece9829c4a8f750adcaccac579a4a410.tar.bz2 |
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.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/elf-jal.d | 25 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 6 |
3 files changed, 36 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index a08dc3c..0f76075 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -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 index 0000000..345dc7a --- /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+ <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 diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index aedaf90..9a12464 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" } |