This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] XFAIL gcc.c-torture/compile/simd-5.c on SPARC64


> What you need to do is put target checking if-else chains around each
> one like in execute/20020227-1.x.
>
> The second thing I suggest is to factor in -m32/-m64.  Create a
> sparc-* pattern and put -m64 in the 3rd arg.  Create a sparc64-*
> pattern and put -m32 in the 4th arg.

Thanks for educating me :-)

Tested on sparc64-sun-solaris2.9 and sparc-sun-solaris2.7 with
'make -k check-gcc RUNTESTFLAGS="compile.exp"'.

-- 
Eric Botcazou


2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
                  Kaveh R. Ghazi <ghazi@caip.rutgers.edu>

        * gcc.c-torture/compile/simd-5.x: XFAIL on SPARC64.
Index: testsuite/gcc.c-torture/compile/simd-5.x
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/simd-5.x,v
retrieving revision 1.1.20.1
diff -u -r1.1.20.1 simd-5.x
--- testsuite/gcc.c-torture/compile/simd-5.x	26 Mar 2003 23:18:32 -0000	1.1.20.1
+++ testsuite/gcc.c-torture/compile/simd-5.x	23 May 2003 15:42:55 -0000
@@ -3,13 +3,38 @@
     return 1;
 }
 
-# PowerPC-64 doesn't handle this; see PR target/9680
-set torture_eval_before_compile {
-    set compiler_conditional_xfail_data {
-        "PR target/9680" \
-        "powerpc64-*-*" \
-        { "*" } \
-        { "" }
+if { [istarget "sparc64-*-*"] || [istarget "sparcv9-*-*"] } {
+    # On SPARC64/SPARC-V9 it fails, except with -m32.
+    set torture_eval_before_compile {
+        global compiler_conditional_xfail_data
+        set compiler_conditional_xfail_data {
+            "PR target/9200" \
+            { "*-*-*" } \
+            { "*" } \
+            { "-m32" }
+        }
+    }
+} elseif { [istarget "sparc-*-*"] } {
+    # On regular SPARC it doesn't fail, except with -m64.
+    set torture_eval_before_compile {
+        global compiler_conditional_xfail_data
+        set compiler_conditional_xfail_data {
+            "PR target/9200" \
+            { "*-*-*" } \
+            { "-m64" } \
+            { "" }
+        }
+    }
+} elseif { [istarget "powerpc64-*-*"] } {
+    # On PowerPC-64 it fails unconditionally.
+    set torture_eval_before_compile {
+        global compiler_conditional_xfail_data
+        set compiler_conditional_xfail_data {
+            "PR target/9680" \
+            "*-*-*" \
+            { "*" } \
+            { "" }
+        }
     }
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]