aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-01-27 23:01:55 +0000
committerAlexandre Oliva <aoliva@redhat.com>2003-01-27 23:01:55 +0000
commita4cb6c4d873314478195509d38117def417889d8 (patch)
treebb1e0158da83871f7abda4cfd3dc3ebd13c43a3a /gas
parent93ac67b5ec2c9a8ba1ddcb053b1d7f1af0ad93e9 (diff)
downloadfsf-binutils-gdb-a4cb6c4d873314478195509d38117def417889d8.zip
fsf-binutils-gdb-a4cb6c4d873314478195509d38117def417889d8.tar.gz
fsf-binutils-gdb-a4cb6c4d873314478195509d38117def417889d8.tar.bz2
* gas/mips/n32-consec.d: New.
* gas/mips/n32-consec.s: New. * gas/mips/mips.exp (run_list_test_arches): Run it on irix6 and mips64*-linux* systems.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/mips/mips.exp5
-rw-r--r--gas/testsuite/gas/mips/n32-consec.d14
-rw-r--r--gas/testsuite/gas/mips/n32-consec.s4
4 files changed, 30 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 9d7d400..d4dacdf 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2003-01-27 Alexandre Oliva <aoliva@redhat.com>
+
+ * gas/mips/n32-consec.d: New.
+ * gas/mips/n32-consec.s: New.
+ * gas/mips/mips.exp (run_list_test_arches): Run it on irix6 and
+ mips64*-linux* systems.
+
2003-01-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
* gas/s390/reloc.s: Add test for PLT reloc against locally defined
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index c43b126..046a33f 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -376,6 +376,7 @@ if { [istarget mips*-*-*] } then {
set ilocks [istarget mipstx39*-*-*]
set gpr_ilocks [expr [istarget mipstx39*-*-*]]
set addr32 [expr [istarget mipstx39*-*-*]]
+ set hasn32 [expr [istarget *-*-irix6*] || [istarget mips64*-*-linux*]]
if { [istarget "mips*-*-*linux*"] } then {
set tmips "t"
@@ -613,6 +614,10 @@ if { [istarget mips*-*-*] } then {
run_dump_test "elf-consthilo"
}
+ if $hasn32 {
+ run_dump_test "n32-consec"
+ }
+
# tests of objdump's ability to disassemble using different
# register names.
run_dump_test "gpr-names-numeric"
diff --git a/gas/testsuite/gas/mips/n32-consec.d b/gas/testsuite/gas/mips/n32-consec.d
new file mode 100644
index 0000000..355d92e
--- /dev/null
+++ b/gas/testsuite/gas/mips/n32-consec.d
@@ -0,0 +1,14 @@
+#as: -n32
+#objdump: -Dr --prefix-addresses
+#name: n32 consecutive unrelated relocations
+
+.*: file format .*mips.*
+
+Disassembly of section .text:
+ ...
+ 0: R_MIPS_32 .text
+Disassembly of section .data:
+ ...
+ 0: R_MIPS_32 .data\+0x4
+Disassembly of section .reginfo:
+ ...
diff --git a/gas/testsuite/gas/mips/n32-consec.s b/gas/testsuite/gas/mips/n32-consec.s
new file mode 100644
index 0000000..f9b3454
--- /dev/null
+++ b/gas/testsuite/gas/mips/n32-consec.s
@@ -0,0 +1,4 @@
+.text
+ .long .
+.data
+ .long .+4