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]

[Testsuite] SPARC tweaks


Hi,

gcc.c-torture/compile/20031023-4.c hits a well-known problem of the SPARC 
back-end (see PR target/6466).

A recent patch by Richard Sandiford
   http://gcc.gnu.org/ml/gcc-patches/2003-09/msg01694.html
cures gcc.c-torture/compile/simd-5.c on SPARC64, except at -O0 and -O1.

gcc.c-torture/execute/simd-4.c at -O0 and gcc.c-torture/execute/va-arg-25.c 
at any -O cause vector modes to reach the SPARC back-end, which immediately 
gives an ICE.

gcc.dg/uninit-C.c doesn't compile on non 64-bit enabled versions of Solaris 
because there is no TImode types.


2003-11-04  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* gcc.c-torture/compile/20031023-4.c: XFAIL on SPARC64
        * gcc.c-torture/compile/simd-5.c: XFAIL on SPARC64 at -O0 and -O1.
        * gcc.c-torture/execute/simd-4.x: New file.  XFAIL on SPARC at -O0.
        * gcc.c-torture/execute/va-arg-25.x: New file.  XFAIL on SPARC.
	* gcc.dg/uninit-C.c: XFAIL on non 64-bit Solaris versions.

-- 
Eric Botcazou
Index: gcc.c-torture/compile/20031023-4.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/20031023-4.c,v
retrieving revision 1.1
diff -u -r1.1 20031023-4.c
--- gcc.c-torture/compile/20031023-4.c	27 Oct 2003 10:52:48 -0000	1.1
+++ gcc.c-torture/compile/20031023-4.c	4 Nov 2003 08:56:29 -0000
@@ -1,2 +1,7 @@
+/* On SPARC64/SPARC-V9 it fails because of a back-end problem, except with -m32. */
+/* { dg-xfail-if "PR target/6466" { "sparc64-*-*" "sparcv9-*-*" } { "*" } { "-m32" } } */
+/* On regular SPARC it doesn't fail, except with -m64. */
+/* { dg-xfail-if "PR target/6466" { "sparc-*-*" } { "-m64" } { "" } } */
+
 #define ASIZE 0x80000000UL
 #include "20031023-1.c"
Index: testsuite/gcc.c-torture/compile/simd-5.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/simd-5.c,v
retrieving revision 1.6
diff -u -p -r1.6 simd-5.c
--- gcc.c-torture/compile/simd-5.c	20 Jun 2003 16:10:13 -0000	1.6
+++ gcc.c-torture/compile/simd-5.c	13 Oct 2003 12:44:17 -0000
@@ -1,7 +1,7 @@
-/* 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" } { "" } } */
+/* On SPARC64/SPARC-V9 it fails at -O0 and -O1, except with -m32. */
+/* { dg-xfail-if "PR target/9200" { "sparc64-*-*" "sparcv9-*-*" } { "-O0" "-O1" } { "-m32" } } */
+/* On regular SPARC it doesn't fail, except with -m64 at -O0 and -O1. */
+/* { dg-xfail-if "PR target/9200" { "sparc-*-*" } { "-m64 -O0" "-m64 -O1" } { "" } } */
 
 #define vector64 __attribute__((vector_size(8)))
 

Attachment: simd-4.x
Description: Text document

Attachment: va-arg-25.x
Description: Text document

Index: gcc.dg/uninit-C.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/uninit-C.c,v
retrieving revision 1.2
diff -u -r1.2 uninit-C.c
--- gcc.dg/uninit-C.c	6 Jun 2003 12:29:13 -0000	1.2
+++ gcc.dg/uninit-C.c	27 Oct 2003 12:13:30 -0000
@@ -4,7 +4,7 @@
 
 /* Not all platforms support TImode integers.  */
 #if defined(__LP64__) || defined(__sparc__)
-typedef int TItype __attribute__ ((mode (TI)));
+typedef int TItype __attribute__ ((mode (TI)));  /* { dg-error "no data type for mode" "TI" { target sparc-sun-solaris2.[0-6]* } } */
 #else
 typedef long TItype;
 #endif

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