diff options
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/elf-rel17.d | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/elf-rel17.s | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips16-jalx.d | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips16.d | 2 |
6 files changed, 26 insertions, 2 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index b606043..829fb75 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2003-12-18 Richard Sandiford <rsandifo@redhat.com> + + * gas/mips/mips16-jalx.d: Use -mabi=o64. + * gas/mips/mips16.d: Likewise. + * gas/mips/elf-rel17.[sd]: New test. + * gas/mips/mips.exp: Run it. + 2003-12-17 Nick Clifton <nickc@redhat.com> * gas/m32r/error.exp: Add parallel.s diff --git a/gas/testsuite/gas/mips/elf-rel17.d b/gas/testsuite/gas/mips/elf-rel17.d new file mode 100644 index 0000000..8774ae2 --- /dev/null +++ b/gas/testsuite/gas/mips/elf-rel17.d @@ -0,0 +1,13 @@ +#objdump: -dr +#as: -mabi=32 + +.*: file format .* + +Disassembly of section \.text: + +00000000 <.*>: +.*: 3c040000 lui a0,0x0 + .*: R_MIPS_HI16 x +.*: 24840000 addiu a0,a0,0 + .*: R_MIPS_LO16 x + \.\.\. diff --git a/gas/testsuite/gas/mips/elf-rel17.s b/gas/testsuite/gas/mips/elf-rel17.s new file mode 100644 index 0000000..44ec0fa --- /dev/null +++ b/gas/testsuite/gas/mips/elf-rel17.s @@ -0,0 +1,3 @@ + la $4,x + .space 16 + .comm x,12 diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index fa8a9a9..2d515a9 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -670,6 +670,7 @@ if { [istarget mips*-*-*] } then { run_dump_test "elf-rel-got-n64" run_dump_test "elf-rel-xgot-n64" } + run_dump_test "elf-rel17" run_dump_test "${tmips}${el}empic" run_dump_test "empic2" diff --git a/gas/testsuite/gas/mips/mips16-jalx.d b/gas/testsuite/gas/mips/mips16-jalx.d index eeec2cb..8af1066 100644 --- a/gas/testsuite/gas/mips/mips16-jalx.d +++ b/gas/testsuite/gas/mips/mips16-jalx.d @@ -1,5 +1,5 @@ #objdump: -dr -mmips:4000 -mmips:16 -#as: -mips3 -mtune=r4000 -mips16 +#as: -mips3 -mtune=r4000 -mips16 -mabi=o64 #name: mips16 jalx .*: file format .* Disassembly of section .text: diff --git a/gas/testsuite/gas/mips/mips16.d b/gas/testsuite/gas/mips/mips16.d index 1550529..7169d69 100644 --- a/gas/testsuite/gas/mips/mips16.d +++ b/gas/testsuite/gas/mips/mips16.d @@ -1,5 +1,5 @@ #objdump: -dr -mmips:4000 -#as: -mips3 -mtune=r4000 +#as: -mips3 -mtune=r4000 -mabi=o64 #name: mips16 # Test the mips16 instruction set. |