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]

[PATCH] testsuite (checked in) fix new vect tests


This patch fixes recent gcc.dg/vect tests that were being run on targets
where they should have been skipped.

Autovectorization tests should never use 'dg-do run'.  There are checks
in vect.exp that determine whether dg-do-what is 'run' or 'compile' as
the default based on whether the test hardware supports vector
instructions.

Tests that generate temporary files should clean up after themselves, so
I added that as well.

Tested on powerpc64-linux with -m32 and -m64, and also with procedure
check_effective_target_vect_conditional modified to return 0 to verify
that the tests are skipped when appropriate.  Checked in on mainline.

2005-04-14  Janis Johnson  <janis187@us.ibm.com

	PR testsuite/21010
	* gcc.dg/vect/vect-ifcvt-1.c: Remove dg-do, add cleanup.
	* gcc.dg/vect/vect-ifcvt-2.c: Ditto.
	* gcc.dg/vect/vect-ifcvt-3.c: Ditto.
	* gcc.dg/vect/vect-ifcvt-4.c: Ditto.
	* gcc.dg/vect/vect-ifcvt-5.c: Ditto.
	* gcc.dg/vect/vect-ifcvt-6.c: Ditto.
	* gcc.dg/vect/vect-ifcvt-7.c: Ditto.
	* gcc.dg/vect/vect-ifcvt-9.c: Ditto.

Index: gcc/testsuite/gcc.dg/vect/vect-ifcvt-1.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/vect/vect-ifcvt-1.c,v
retrieving revision 1.2
diff -u -p -r1.2 vect-ifcvt-1.c
--- gcc/testsuite/gcc.dg/vect/vect-ifcvt-1.c	12 Apr 2005 01:35:54 -0000	1.2
+++ gcc/testsuite/gcc.dg/vect/vect-ifcvt-1.c	14 Apr 2005 17:06:29 -0000
@@ -1,5 +1,4 @@
 /* { dg-require-effective-target vect_condition } */
-/* { dg-do run } */
 
 #include <stdarg.h>
 #include <signal.h>
@@ -72,3 +71,4 @@ int main ()
 
 
 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { xfail vect_no_align } } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */
Index: gcc/testsuite/gcc.dg/vect/vect-ifcvt-2.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/vect/vect-ifcvt-2.c,v
retrieving revision 1.2
diff -u -p -r1.2 vect-ifcvt-2.c
--- gcc/testsuite/gcc.dg/vect/vect-ifcvt-2.c	12 Apr 2005 01:35:54 -0000	1.2
+++ gcc/testsuite/gcc.dg/vect/vect-ifcvt-2.c	14 Apr 2005 17:06:40 -0000
@@ -1,5 +1,4 @@
 /* { dg-require-effective-target vect_condition } */
-/* { dg-do run } */
 
 #include <stdarg.h>
 #include <signal.h>
@@ -29,3 +28,4 @@ int main ()
 
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */
Index: gcc/testsuite/gcc.dg/vect/vect-ifcvt-3.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/vect/vect-ifcvt-3.c,v
retrieving revision 1.2
diff -u -p -r1.2 vect-ifcvt-3.c
--- gcc/testsuite/gcc.dg/vect/vect-ifcvt-3.c	12 Apr 2005 01:35:54 -0000	1.2
+++ gcc/testsuite/gcc.dg/vect/vect-ifcvt-3.c	14 Apr 2005 17:06:54 -0000
@@ -1,5 +1,4 @@
 /* { dg-require-effective-target vect_condition } */
-/* { dg-do run } */
 
 #include <stdarg.h>
 #include <signal.h>
@@ -29,3 +28,4 @@ int main ()
 
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */
Index: gcc/testsuite/gcc.dg/vect/vect-ifcvt-4.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/vect/vect-ifcvt-4.c,v
retrieving revision 1.2
diff -u -p -r1.2 vect-ifcvt-4.c
--- gcc/testsuite/gcc.dg/vect/vect-ifcvt-4.c	12 Apr 2005 01:35:54 -0000	1.2
+++ gcc/testsuite/gcc.dg/vect/vect-ifcvt-4.c	14 Apr 2005 17:07:06 -0000
@@ -1,5 +1,4 @@
 /* { dg-require-effective-target vect_condition } */
-/* { dg-do run } */
 
 #include <stdarg.h>
 #include <signal.h>
@@ -29,3 +28,4 @@ int main ()
 
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */
Index: gcc/testsuite/gcc.dg/vect/vect-ifcvt-5.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/vect/vect-ifcvt-5.c,v
retrieving revision 1.2
diff -u -p -r1.2 vect-ifcvt-5.c
--- gcc/testsuite/gcc.dg/vect/vect-ifcvt-5.c	12 Apr 2005 01:35:54 -0000	1.2
+++ gcc/testsuite/gcc.dg/vect/vect-ifcvt-5.c	14 Apr 2005 17:07:17 -0000
@@ -1,5 +1,4 @@
 /* { dg-require-effective-target vect_condition } */
-/* { dg-do run } */
 
 #include <stdarg.h>
 #include <signal.h>
@@ -29,3 +28,4 @@ int main ()
 
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */
Index: gcc/testsuite/gcc.dg/vect/vect-ifcvt-6.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/vect/vect-ifcvt-6.c,v
retrieving revision 1.2
diff -u -p -r1.2 vect-ifcvt-6.c
--- gcc/testsuite/gcc.dg/vect/vect-ifcvt-6.c	12 Apr 2005 01:35:54 -0000	1.2
+++ gcc/testsuite/gcc.dg/vect/vect-ifcvt-6.c	14 Apr 2005 17:07:29 -0000
@@ -1,5 +1,4 @@
 /* { dg-require-effective-target vect_condition } */
-/* { dg-do run } */
 
 #include <stdarg.h>
 #include <signal.h>
@@ -29,3 +28,4 @@ int main ()
 
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */
Index: gcc/testsuite/gcc.dg/vect/vect-ifcvt-7.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/vect/vect-ifcvt-7.c,v
retrieving revision 1.2
diff -u -p -r1.2 vect-ifcvt-7.c
--- gcc/testsuite/gcc.dg/vect/vect-ifcvt-7.c	12 Apr 2005 01:35:54 -0000	1.2
+++ gcc/testsuite/gcc.dg/vect/vect-ifcvt-7.c	14 Apr 2005 17:07:43 -0000
@@ -1,5 +1,4 @@
 /* { dg-require-effective-target vect_condition } */
-/* { dg-do run } */
 
 #include <stdarg.h>
 #include <signal.h>
@@ -29,3 +28,4 @@ int main ()
 
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */
Index: gcc/testsuite/gcc.dg/vect/vect-ifcvt-9.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/vect/vect-ifcvt-9.c,v
retrieving revision 1.2
diff -u -p -r1.2 vect-ifcvt-9.c
--- gcc/testsuite/gcc.dg/vect/vect-ifcvt-9.c	12 Apr 2005 01:35:54 -0000	1.2
+++ gcc/testsuite/gcc.dg/vect/vect-ifcvt-9.c	14 Apr 2005 17:07:54 -0000
@@ -1,5 +1,4 @@
 /* { dg-require-effective-target vect_condition } */
-/* { dg-do run } */
 
 #include <stdarg.h>
 #include <signal.h>
@@ -34,3 +33,4 @@ int main ()
 }
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */


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