]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/52125 (Problems with LO16 asm operands on MIPS)
authorRichard Sandiford <rdsandiford@googlemail.com>
Sun, 5 Feb 2012 14:56:35 +0000 (14:56 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 5 Feb 2012 14:56:35 +0000 (14:56 +0000)
gcc/testsuite/
PR target/52125
* lib/target-supports.exp (check_effective_target_mips_rel): New.
* gcc.dg/pr48774.c: Skip on MIPS REL targets.

From-SVN: r183910

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr48774.c
gcc/testsuite/lib/target-supports.exp

index 69e62cb621a7d8437b2d07f19ca120d12e620f6e..9b8529663f4df8c90962b89e5cbfde48543dcf6e 100644 (file)
@@ -1,3 +1,9 @@
+2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       PR target/52125
+       * lib/target-supports.exp (check_effective_target_mips_rel): New.
+       * gcc.dg/pr48774.c: Skip on MIPS REL targets.
+
 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * lib/target-supports.exp (check_effective_target_mips_llsc): New.
index 91ce361ccb38645ce4a249d80bc526b382d96ae6..abd8c2319326451270cab90971b55451544bc8d5 100644 (file)
@@ -1,5 +1,6 @@
 /* PR target/48774 */
 /* { dg-do run } */
+/* { dg-skip-if "PR 52125" { mips_rel } { "*" } { "" } } */
 /* { dg-options "-O2 -funroll-loops" } */
 
 extern void abort (void);
index ca101438cc8553622c636d2f1914368b8efbdf40..518d654ee907da0ec4002d51226fe633c6dac0f9 100644 (file)
@@ -910,6 +910,20 @@ proc check_effective_target_mips_llsc { } {
     }]
 }
 
+# Return true if the target is a MIPS target that uses in-place relocations.
+
+proc check_effective_target_mips_rel { } {
+    if { ![istarget mips*-*-*] } {
+       return 0
+    }
+    return [check_no_compiler_messages mips_rel object {
+       #if (defined _ABIN32 && _MIPS_SIM == _ABIN32) \
+           || (defined _ABI64 && _MIPS_SIM == _ABI64)
+       #error FOO
+       #endif
+    }]
+}
+
 # Return 1 if the current multilib does not generate PIC by default.
 
 proc check_effective_target_nonpic { } {