summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-02-07 19:23:35 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-02-07 19:23:35 +0000
commitfe6a9b7b709b2c029f022cb59b1ed2552847f474 (patch)
treef4dfcc868da1949390d228ca9f714bdd6777297c /gcc/testsuite/gcc.target
parent1bd48816bc71a1ec953f71f38e30eded4f5446e4 (diff)
downloadgcc-fe6a9b7b709b2c029f022cb59b1ed2552847f474.tar.gz
gcc/testsuite/
PR target/52155 * gcc.target/mips/mips.exp (mips-dg-options): Handle xfail and target. * gcc.target/mips/loongson-shift-count-truncated-1.c: Force -mlong64 for MIPS ELF. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183979 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target')
-rw-r--r--gcc/testsuite/gcc.target/mips/loongson-shift-count-truncated-1.c2
-rw-r--r--gcc/testsuite/gcc.target/mips/mips.exp9
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/loongson-shift-count-truncated-1.c b/gcc/testsuite/gcc.target/mips/loongson-shift-count-truncated-1.c
index be52cf7dedc..1c892d80627 100644
--- a/gcc/testsuite/gcc.target/mips/loongson-shift-count-truncated-1.c
+++ b/gcc/testsuite/gcc.target/mips/loongson-shift-count-truncated-1.c
@@ -5,6 +5,8 @@
seem any good reason for it to, given that the Loongson processors
do not support MIPS16. */
/* { dg-options "isa=loongson -mhard-float -mno-mips16 -O1" } */
+/* See PR 52155. */
+/* { dg-options "isa=loongson -mhard-float -mno-mips16 -O1 -mlong64" { mips*-*-elf* && ilp32 } } */
#include "loongson.h"
#include <assert.h>
diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp
index fd065ec9469..1be2f1e372d 100644
--- a/gcc/testsuite/gcc.target/mips/mips.exp
+++ b/gcc/testsuite/gcc.target/mips/mips.exp
@@ -855,6 +855,15 @@ proc mips-dg-options { args } {
# Information about this run.
global mips_base_options
+ if { [llength $args] >= 3 } {
+ switch { [dg-process-target [lindex $args 2]] } {
+ "S" { }
+ "N" { return }
+ "F" { error "[lindex $args 0]: `xfail' not allowed here" }
+ "P" { error "[lindex $args 0]: `xfail' not allowed here" }
+ }
+ }
+
# Start out with the default option state.
array set options [array get mips_base_options]