diff mbox

Fix PRs 68916 and 68914

Message ID alpine.LSU.2.11.1512161311310.3571@t29.fhfr.qr
State New
Headers show

Commit Message

Richard Biener Dec. 16, 2015, 12:12 p.m. UTC
Testisms, the easiest thing is to require vect_perm.

Tested on x86_64-unknown-linux-gnu, applied.

Richard.

2015-12-16  Richard Biener  <rguenther@suse.de>

	PR testsuite/68916
	PR testsuite/68914
	* gcc.dg/vect/pr45752.c: Require vect_perm and adjust expected
	dump.
	* gcc.dg/vect/slp-perm-4.c: Likewise.
diff mbox

Patch

Index: gcc/testsuite/gcc.dg/vect/pr45752.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/pr45752.c	(revision 231675)
+++ gcc/testsuite/gcc.dg/vect/pr45752.c	(working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-require-effective-target vect_int } */
+/* { dg-require-effective-target vect_perm } */
 /* { dg-additional-options "--param tree-reassoc-width=1" } */
 
 #include <stdarg.h>
@@ -104,6 +105,8 @@  int main (int argc, const char* argv[])
   return 0;
 }
 
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect"  } } */
+/* Currently interleaving is not supported for a group-size of 5.  */
+
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
 /* { dg-final { scan-tree-dump-times "gaps requires scalar epilogue loop" 0 "vect" } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" { target vect_perm } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" } } */
Index: gcc/testsuite/gcc.dg/vect/slp-perm-4.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/slp-perm-4.c	(revision 231675)
+++ gcc/testsuite/gcc.dg/vect/slp-perm-4.c	(working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-require-effective-target vect_int } */
+/* { dg-require-effective-target vect_perm } */
 
 #include <stdarg.h>
 #include "tree-vect.h"
@@ -82,6 +83,8 @@  int main (int argc, const char* argv[])
   return 0;
 }
 
+/* Currently interleaving is not supported for a group-size of 5.  */
+
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
 /* { dg-final { scan-tree-dump-times "gaps requires scalar epilogue loop" 0 "vect" } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target vect_perm } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" } } */