aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2012-02-05 14:56:35 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2012-02-05 14:56:35 +0000
commit9021d4e19313689138c95d2704301667543a24fb (patch)
tree72021f8cf0c9876122b4e5b4379a5ba526aabfe4 /gcc
parent16955e8bf016705622c9124a22e39de2fcef2550 (diff)
downloadgcc-9021d4e19313689138c95d2704301667543a24fb.zip
gcc-9021d4e19313689138c95d2704301667543a24fb.tar.gz
gcc-9021d4e19313689138c95d2704301667543a24fb.tar.bz2
re PR target/52125 (Problems with LO16 asm operands on MIPS)
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/pr48774.c1
-rw-r--r--gcc/testsuite/lib/target-supports.exp14
3 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 69e62cb..9b85296 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,11 @@
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.
(check_effective_target_sync_int_long): Use it.
(check_effective_target_sync_char_short): Likewise.
diff --git a/gcc/testsuite/gcc.dg/pr48774.c b/gcc/testsuite/gcc.dg/pr48774.c
index 91ce361..abd8c23 100644
--- a/gcc/testsuite/gcc.dg/pr48774.c
+++ b/gcc/testsuite/gcc.dg/pr48774.c
@@ -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);
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index ca10143..518d654 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -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 { } {