gcc-dg.exp (dg-xfail-if): Fix thinko.
authorMark Mitchell <mark@codesourcery.com>
Mon, 16 Jun 2003 19:12:15 +0000 (19:12 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 16 Jun 2003 19:12:15 +0000 (19:12 +0000)
* lib/gcc-dg.exp (dg-xfail-if): Fix thinko.
* gcc.c-torture/compile/simd-5.c: Remove spurious PowerPC-64 XFAIL
indications.

From-SVN: r68034

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/simd-5.c
gcc/testsuite/lib/gcc-dg.exp

index 778351adf9cbb792c288fb8a3aef83976e41db9e..0d714dd57ec00a7efb04d40854fb8236b665ddcf 100644 (file)
@@ -1,7 +1,8 @@
 2003-06-16  Mark Mitchell  <mark@codesourcery.com>
 
-       * gcc.c-torture/compile/simd-5.c: Correct SPARC XFAIL indications.
-       Remove spurious PowerPC-64 XFAIL indications.
+       * lib/gcc-dg.exp (dg-xfail-if): Fix thinko.
+       * gcc.c-torture/compile/simd-5.c: Remove spurious PowerPC-64 XFAIL
+       indications.
 
 2003-06-16  Roger Sayle  <roger@eyesopen.com>
 
index 15748069c058f296c761da939b65003e5468e51a..6907fa5e66ac6495b1d2fc8590807347dc91c8a0 100644 (file)
@@ -1,10 +1,9 @@
-/* On SPARC64/SPARC-V9 it fails, except with -m32.  On regular SPARC
-   it doesn't fail, except with -m64.  In other words, this test fails
-   on 64-bit SPARC.  Unfortunately, there's no way to encode that
-   information in the dg framework, so the test will XPASS on 32-bit
-   SPARC.  */
 /* h8300 does not have long long */
-/* { dg-excess-errors "PR target/9200" { xfail "sparc*-*-*" "h8300-*-*" } } */
+/* { dg-do assemble { xfail h8300-*-* } } */
+/* On SPARC64/SPARC-V9 it fails, except with -m32. */
+/* { dg-xfail-if "PR target/9200" { "sparc64-*-*" "sparcv9-*-*" } { "*" } { "-m32" } } */
+/* On regular SPARC it doesn't fail, except with -m64. */
+/* { dg-xfail-if "PR target/9200" { "sparc*-*-*" } { "-m64" } { "" } } */
 
 #define vector64 __attribute__((vector_size(8)))
 
index 69cf6fb2379819c8b9be1c9b002ee435d7ca41c7..db616d8567f4a2b011064111a993ac141d862acb 100644 (file)
@@ -315,7 +315,9 @@ proc dg-require-dll { args } {
 # Like check_conditional_xfail, but callable from a dg test.
 
 proc dg-xfail-if { args } {
-    eval check_conditional_xfail $args
+    set args [lreplace $args 0 0]
+    global compiler_conditional_xfail_data
+    set compiler_conditional_xfail_data $args
 }