gas/testsuite/
authorRichard Sandiford <rdsandiford@googlemail.com>
Mon, 17 Mar 2008 18:45:35 +0000 (18:45 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Mon, 17 Mar 2008 18:45:35 +0000 (18:45 +0000)
* gas/mips/elf-rel26.d: Add -32.
* gas/mips/mips16-intermix.d: Likewise.

ld/testsuite/
* ld-mips-elf/mips-elf.exp (o32_as_flags, o32_ld_flags): New variables.
(mips16_call_global_test, mips16_intermix_test): Use them.

gas/testsuite/ChangeLog
gas/testsuite/gas/mips/elf-rel26.d
gas/testsuite/gas/mips/mips16-intermix.d
ld/testsuite/ChangeLog
ld/testsuite/ld-mips-elf/mips-elf.exp

index 951ecb57b4202d63056cd1d30718b48b0276bce7..5540b548b8a0e178b002a74d81038c5c313da4ce 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-17  Richard Sandiford  <rsandifo@nildram.co.uk>
+
+       * gas/mips/elf-rel26.d: Add -32.
+       * gas/mips/mips16-intermix.d: Likewise.
+
 2008-03-13  Nick Clifton  <nickc@redhat.com>
 
        PR gas/5895
index d176acbf52c269b3c4451a39dd7fcbd2b35f24bd..aeb4e16d178282670607cb9ab17334b4e5adb89a 100644 (file)
@@ -1,4 +1,4 @@
-#as: -mips32 -EL -KPIC
+#as: -mips32 -32 -EL -KPIC
 #readelf: --relocs
 #name: MIPS ELF reloc 26
 
index 9b541eefebcf3932bd3e3b6f8f8b90d9d0f848d3..e0e07c8f7988261eaf0e8e5d232a66ac8609786f 100644 (file)
@@ -1,5 +1,5 @@
 #objdump: -t
-#as: -mips32r2
+#as: -mips32r2 -32
 #name: MIPS16 intermix
 
 .*: +file format .*mips.*
index 2f5fab81d47ab29ba8ad4e1abc51b32a50ba7955..fcd3cc965c8c73c808b94a46b7edd22bf0156071 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-17  Richard Sandiford  <rsandifo@nildram.co.uk>
+
+       * ld-mips-elf/mips-elf.exp (o32_as_flags, o32_ld_flags): New variables.
+       (mips16_call_global_test, mips16_intermix_test): Use them.
+
 2008-03-16  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/5789
index fb32f5cc10d366becdc0397d0d50dcac5af8fba1..404ee2a74ae66dfab20ec2fb4665d4645e39480c 100644 (file)
@@ -56,6 +56,13 @@ set has_newabi [expr [istarget *-*-irix6*] || [istarget mips64*-*-linux*]]
 set linux_gnu [expr [istarget mips*-*-linux*]]
 set embedded_elf [expr [istarget mips*-*-elf]]
 
+if { [istarget mips64*-linux-gnu] } {
+    set o32_as_flags "-32 -EB"
+    set o32_ld_flags "-melf32btsmip"
+} else {
+    set o32_as_flags ""
+    set o32_ld_flags ""
+}
 
 # Check MIPS16 markings being passed through link.
 run_dump_test "mips16-1"
@@ -264,23 +271,23 @@ if {[istarget mips*-*-linux*]} {
     run_ld_link_tests $mips_tls_tests
 }
 
-set mips16_call_global_test {
-    {"Global calls from mips16"
-     ""
-     "-mips32r2" {mips16-call-global-1.s mips16-call-global-2.s mips16-call-global-3.s}
-     {{objdump -dr mips16-call-global.d}}
-     "mips16-call-global"}
-}
+set mips16_call_global_test [list \
+    [list "Global calls from mips16" \
+        "$o32_ld_flags" \
+        "$o32_as_flags -mips32r2" \
+        {mips16-call-global-1.s mips16-call-global-2.s mips16-call-global-3.s} \
+        {{objdump -dr mips16-call-global.d}} \
+        "mips16-call-global"]]
 
 run_ld_link_tests $mips16_call_global_test
 
-set mips16_intermix_test {
-    {"Intermixing mips32 and mips16 functions"
-     ""
-     "-mips32r2" {mips16-intermix-1.s mips16-intermix-2.s}
-     {{objdump -t mips16-intermix.d}}
-     "mips16-intermix"}
-}
+set mips16_intermix_test [list \
+    [list "Intermixing mips32 and mips16 functions" \
+        "$o32_ld_flags" \
+        "$o32_as_flags -mips32r2" \
+        {mips16-intermix-1.s mips16-intermix-2.s} \
+        {{objdump -t mips16-intermix.d}} \
+        "mips16-intermix"]]
 
 run_ld_link_tests $mips16_intermix_test