Patchwork [committed] Fix vect_intness in a few tests

login
register
mail settings
Submitter Richard Sandiford
Date Jan. 19, 2014, 9:57 a.m.
Message ID <87zjmsl2ep.fsf@talisman.default>
Download mbox | patch
Permalink /patch/312369/
State New
Headers show

Comments

Richard Sandiford - Jan. 19, 2014, 9:57 a.m.
One test tests for integer vectorisation so requires vect_int.  Two others
already had the dg-require-effective-target, but it was before the dg-do
rather than after.

Tested on mips64-linux-gnu, where it fixes the vect.exp failures.
Applied as obvious.

Thanks,
Richard


gcc/testsuite/
	* gcc.dg/vect/pr57705.c: Require vect_int.
	* gcc.dg/vect/pr58508.c: Fix order of dg-require-effective-target line.
	* gcc.dg/vect/vect-alias-check.c: Likewise.

Patch

Index: gcc/testsuite/gcc.dg/vect/pr57705.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/pr57705.c	2014-01-19 09:52:07.761437971 +0000
+++ gcc/testsuite/gcc.dg/vect/pr57705.c	2014-01-19 09:52:07.973439322 +0000
@@ -1,4 +1,5 @@ 
 /* { dg-do run } */
+/* { dg-require-effective-target vect_int } */
 
 #include "tree-vect.h"
 
Index: gcc/testsuite/gcc.dg/vect/pr58508.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/pr58508.c	2014-01-19 09:52:07.776438067 +0000
+++ gcc/testsuite/gcc.dg/vect/pr58508.c	2014-01-19 09:52:07.973439322 +0000
@@ -1,5 +1,5 @@ 
-/* { dg-require-effective-target vect_int } */
 /* { dg-do compile } */
+/* { dg-require-effective-target vect_int } */
 
 
 /* The GCC vectorizer generates loop versioning for the following loop
Index: gcc/testsuite/gcc.dg/vect/vect-alias-check.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/vect-alias-check.c	2014-01-19 09:52:07.776438067 +0000
+++ gcc/testsuite/gcc.dg/vect/vect-alias-check.c	2014-01-19 09:52:07.974439329 +0000
@@ -1,5 +1,5 @@ 
-/* { dg-require-effective-target vect_int } */
 /* { dg-do compile } */
+/* { dg-require-effective-target vect_int } */
 /* { dg-additional-options "--param=vect-max-version-for-alias-checks=2" } */
 
 /* A test case showing four potential alias checks between a[i] and b[0], b[1],