diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2001-08-03 18:37:42 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2001-08-03 18:37:42 +0000 |
commit | 15ba8cc1de5338419bb61b64e24dc2972bb70f94 (patch) | |
tree | 58ea877a4b05b30f3fdf74d46f6482a02ba44c4a /gas/testsuite | |
parent | 82146c599f9a6fc80b288dda1c555ce38b3d2bd7 (diff) | |
download | gdb-15ba8cc1de5338419bb61b64e24dc2972bb70f94.zip gdb-15ba8cc1de5338419bb61b64e24dc2972bb70f94.tar.gz gdb-15ba8cc1de5338419bb61b64e24dc2972bb70f94.tar.bz2 |
* gas/mips/elf-rel4.s, gas/mips/elf-rel4.d: New test.
* gas/mips/e32-rel4.s, gas/mips/e32-rel4.s: New test.
* gas/mips/mips.exp: Run new tests.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/mips/e32-rel4.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/e32-rel4.s | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/elf-rel4.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/elf-rel4.s | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 6 |
5 files changed, 56 insertions, 2 deletions
diff --git a/gas/testsuite/gas/mips/e32-rel4.d b/gas/testsuite/gas/mips/e32-rel4.d new file mode 100644 index 0000000..005075b --- /dev/null +++ b/gas/testsuite/gas/mips/e32-rel4.d @@ -0,0 +1,14 @@ +#objdump: --prefix-addresses -dr +#name: MIPS ELF reloc 4 + +.*: +file format.* + +Disassembly of section .text: +0+000 <[^>]*> addiu a0,gp,0 + 0: R_MIPS_GPREL16 a +0+004 <[^>]*> addiu a0,gp,4 + 4: R_MIPS_GPREL16 a +0+008 <[^>]*> addiu a0,gp,8 + 8: R_MIPS_GPREL16 a +0+00c <[^>]*> addiu a0,gp,12 + c: R_MIPS_GPREL16 a diff --git a/gas/testsuite/gas/mips/e32-rel4.s b/gas/testsuite/gas/mips/e32-rel4.s new file mode 100644 index 0000000..085cb23 --- /dev/null +++ b/gas/testsuite/gas/mips/e32-rel4.s @@ -0,0 +1,12 @@ + + .section .sdata + .global a + .4byte 1 +a: .4byte 2 + + .section .text + la $4,a + la $4,a+4 + la $4,a+8 + la $4,a+12 + diff --git a/gas/testsuite/gas/mips/elf-rel4.d b/gas/testsuite/gas/mips/elf-rel4.d new file mode 100644 index 0000000..21e3975 --- /dev/null +++ b/gas/testsuite/gas/mips/elf-rel4.d @@ -0,0 +1,14 @@ +#objdump: --prefix-addresses -dr +#name: MIPS ELF reloc 4 + +.*: +file format.* + +Disassembly of section .text: +0+000 <[^>]*> daddiu a0,gp,0 + 0: R_MIPS_GPREL16 a +0+004 <[^>]*> daddiu a0,gp,4 + 4: R_MIPS_GPREL16 a +0+008 <[^>]*> daddiu a0,gp,8 + 8: R_MIPS_GPREL16 a +0+00c <[^>]*> daddiu a0,gp,12 + c: R_MIPS_GPREL16 a diff --git a/gas/testsuite/gas/mips/elf-rel4.s b/gas/testsuite/gas/mips/elf-rel4.s new file mode 100644 index 0000000..085cb23 --- /dev/null +++ b/gas/testsuite/gas/mips/elf-rel4.s @@ -0,0 +1,12 @@ + + .section .sdata + .global a + .4byte 1 +a: .4byte 2 + + .section .text + la $4,a + la $4,a+4 + la $4,a+8 + la $4,a+12 + diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index 00344ce..84932aa 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -150,9 +150,11 @@ if { [istarget mips*-*-*] } then { run_dump_test "elf${el}-rel" if [istarget mips64*-*-*] { - run_dump_test "elf${el}-rel2" + run_dump_test "elf${el}-rel2" + run_dump_test "elf${el}-rel4" } { - run_dump_test "e32${el}-rel2" + run_dump_test "e32${el}-rel2" + run_dump_test "e32${el}-rel4" } run_dump_test "elf${el}-rel3" run_dump_test "${tmips}${el}empic" |