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] More tweaks


Hi,

This patch supercedes a previous message I posted about the testsuite:
http://gcc.gnu.org/ml/gcc-patches/2003-10/msg00989.html

I'm in the process of cleaning up the testsuite for sparc*-sun-solaris* on 
mainline, so that I could see which failures are real and which one are 
bogus.

First, a generic problem: when you set torture_eval_before_compile for 
gcc.c-torture/execute, the compilation is correctly XFAILed but the 
execution is not, leading to bunch of UNRESOLVED in the log file. A 
contrario, g77.f-torture/execute behaves more nicely and doesn't test 
execution in this case, so no UNRESOLVED appears in the log file.

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.c-torture/execute/wchar_t-1.c is not properly XFAILed for all targets.

Tested on sparc64-sun-solaris2.9, sparc-sun-solaris2.8, sparc-sun-solaris2.7 
and sparc-sun-solaris2.6.


2003-10-16  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* lib/c-torture.exp (c-torture-execute): Mark testcases XFAILed by
	torture_eval_before_compile as untested for execution.
        * gcc.c-torture/compile/simd-5.c: XFail only 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.c-torture/execute/wchar_t-1.c: Properly XFAIL everywhere.


-- 
Eric Botcazou
Index: lib/c-torture.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/lib/c-torture.exp,v
retrieving revision 1.17
diff -u -r1.17 c-torture.exp
--- lib/c-torture.exp	25 May 2002 03:40:20 -0000	1.17
+++ lib/c-torture.exp	15 Oct 2003 13:50:12 -0000
@@ -146,6 +146,7 @@
 	    set oldexec $execname;
 	}
 	set execname "${executable}${count}";
+	set do_not_execute 0;
 	incr count;
 
 	# torture_{compile,execute}_xfail are set by the .x script
@@ -157,7 +158,8 @@
 	# torture_execute_before_{compile,execute} can be set by the .x script
 	# (if present)
 	if [info exists torture_eval_before_compile] {
-            set ignore_me [eval $torture_eval_before_compile]
+	    set ignore_me [eval $torture_eval_before_compile]
+	    set do_not_execute 1;
 	}
 
 	remote_file build delete $execname;
@@ -171,7 +173,11 @@
 	set comp_output [gcc_target_compile "$sources" "${execname}" executable $options];
 
 	if ![gcc_check_compile "$testcase compilation" $option $execname $comp_output] {
-	    unresolved "$testcase execution, $option"
+	    if { $do_not_execute } {
+		untested "$testcase execution, $option"
+	    } else {
+		unresolved "$testcase execution, $option"
+	    }
 	    remote_file build delete $execname
 	    continue
 	}
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
--- testsuite/gcc.c-torture/compile/simd-5.c	20 Jun 2003 16:10:13 -0000	1.6
+++ testsuite/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: testsuite/gcc.c-torture/execute/wchar_t-1.x
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/wchar_t-1.x,v
retrieving revision 1.1
diff -u -r1.1 wchar_t-1.x
--- testsuite/gcc.c-torture/execute/wchar_t-1.x	5 Jul 2003 00:23:59 -0000	1.1
+++ testsuite/gcc.c-torture/execute/wchar_t-1.x	16 Oct 2003 07:39:13 -0000
@@ -1,3 +1,13 @@
-# Doesn't compile due to use of literal ISO8859.1 characters.  PR 11439.
-set torture_compile_xfail "*-*-*"
+# Doesn't compile due to use of literal ISO8859.1 characters.
+
+set torture_eval_before_compile {
+    global compiler_conditional_xfail_data
+    set compiler_conditional_xfail_data {
+      "PR 11439" \
+      { "*-*-*" } \
+      { "*" } \
+      { "" }
+    }
+}
+
 return 0

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