]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mips.exp (mips_option_tests(-mips16)): Make the sequence PC-relative.
authorAdam Nemet <anemet@caviumnetworks.com>
Wed, 14 Jan 2009 19:46:38 +0000 (19:46 +0000)
committerAdam Nemet <nemet@gcc.gnu.org>
Wed, 14 Jan 2009 19:46:38 +0000 (19:46 +0000)
* gcc.target/mips/mips.exp (mips_option_tests(-mips16)): Make the
sequence PC-relative.

From-SVN: r143382

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/mips.exp

index 95015b36e42287da1ea1da83fe48eaed36c4b1fa..4d8c384d528c4d50347e04fc8c04fc6a864b656f 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-14  Adam Nemet  <anemet@caviumnetworks.com>
+
+       * gcc.target/mips/mips.exp (mips_option_tests(-mips16)): Make the
+       sequence PC-relative.
+
 2009-01-14  Mark Mitchell  <mark@codesourcery.com>
 
        * gcc.target/arm/long-calls-1.c: Tolerate the lack of sibling
index e1496d9d6a7f8d52367bdba5a6e2388abdb31a1c..c5d6089a964c81f120a8cefb18e0466f26040c82 100644 (file)
@@ -269,15 +269,14 @@ set mips_abi_groups {
 # on a target that supports OPTION.
 set mips_option_tests(-mips16) {
     move $2,$31
-    jal 1f
-    b 2f
-    .align 2
+    bal 1f
     .set mips16
-1:
     jr $31
     .set nomips16
     .align 2
-2:
+1:
+    ori $3,$31,1
+    jalr $3
     move $31,$2
 }
 set mips_option_tests(-mpaired-single) {