This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR46312
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 9 Nov 2010 14:41:50 +0100 (CET)
- Subject: [PATCH] Fix PR46312
This moves the testcases to vect/
Committed.
Richard.
2010-11-09 Richard Guenther <rguenther@suse.de>
PR testsuite/46312
* gcc.dg/vec-scal-opt.c: Move ...
* gcc.dg/vect/vect-scal-opt.c: ... here.
* gcc.dg/vec-scal-opt1.c: Move ...
* gcc.dg/vect/vect-scal-opt1.c: ... here.
* gcc.dg/vec-scal-opt2.c: Move ...
* gcc.dg/vect/vect-scal-opt2.c: ... here.
Index: vec-scal-opt.c
===================================================================
*** vec-scal-opt.c (revision 166486)
--- vec-scal-opt.c (working copy)
***************
*** 1,22 ****
- /* { dg-do compile } */
- /* { dg-options "-O -fdump-tree-veclower" } */
-
- #define vidx(type, vec, idx) (*((type *) &(vec) + idx))
- #define vector(elcount, type) \
- __attribute__((vector_size((elcount)*sizeof(type)))) type
-
- short k;
-
- int main (int argc, char *argv[]) {
- k = argc;
- vector(8, short) v0 = {argc,1,2,3,4,5,6,7};
- vector(8, short) v2 = {k, k,k,k,k,k,k,k};
- vector(8, short) r1;
-
- r1 = v0 >> v2;
-
- return vidx(short, r1, 0);
- }
-
- /* { dg-final { scan-tree-dump-times ">> k.\[0-9_\]*" 1 "veclower" } } */
- /* { dg-final { cleanup-tree-dump "veclower" } } */
--- 0 ----
Index: vec-scal-opt2.c
===================================================================
*** vec-scal-opt2.c (revision 166486)
--- vec-scal-opt2.c (working copy)
***************
*** 1,19 ****
- /* { dg-do compile } */
- /* { dg-options "-O -fdump-tree-veclower" } */
-
- #define vidx(type, vec, idx) (*((type *) &(vec) + idx))
- #define vector(elcount, type) \
- __attribute__((vector_size((elcount)*sizeof(type)))) type
-
- int main (int argc, char *argv[]) {
- vector(8, short) v0 = {argc,1,2,3,4,5,6,7};
- vector(8, short) v1 = {2,2,2,2,2,2,2,2};
- vector(8, short) r1;
-
- r1 = v0 >> v1;
-
- return vidx(short, r1, 0);
- }
-
- /* { dg-final { scan-tree-dump-times ">> 2" 1 "veclower" } } */
- /* { dg-final { cleanup-tree-dump "veclower" } } */
--- 0 ----
Index: vec-scal-opt2.c
===================================================================
*** vec-scal-opt2.c (revision 166486)
--- vec-scal-opt2.c (working copy)
***************
*** 1,19 ****
- /* { dg-do compile } */
- /* { dg-options "-O -fdump-tree-veclower" } */
-
- #define vidx(type, vec, idx) (*((type *) &(vec) + idx))
- #define vector(elcount, type) \
- __attribute__((vector_size((elcount)*sizeof(type)))) type
-
- int main (int argc, char *argv[]) {
- vector(8, short) v0 = {argc,1,2,3,4,5,6,7};
- vector(8, short) v1 = {2,2,2,2,2,2,2,2};
- vector(8, short) r1;
-
- r1 = v0 >> v1;
-
- return vidx(short, r1, 0);
- }
-
- /* { dg-final { scan-tree-dump-times ">> 2" 1 "veclower" } } */
- /* { dg-final { cleanup-tree-dump "veclower" } } */
--- 0 ----
Index: vect/vect-scal-opt.c
===================================================================
*** vect/vect-scal-opt.c (revision 166486)
--- vect/vect-scal-opt.c (working copy)
***************
*** 1,4 ****
--- 1,6 ----
/* { dg-do compile } */
+ /* { dg-require-effective-target vect_shift } */
+ /* { dg-require-effective-target vect_int } */
/* { dg-options "-O -fdump-tree-veclower" } */
#define vidx(type, vec, idx) (*((type *) &(vec) + idx))
Index: vect/vect-scal-opt1.c
===================================================================
*** vect/vect-scal-opt1.c (revision 166486)
--- vect/vect-scal-opt1.c (working copy)
***************
*** 1,4 ****
--- 1,6 ----
/* { dg-do compile } */
+ /* { dg-require-effective-target vect_shift } */
+ /* { dg-require-effective-target vect_int } */
/* { dg-options "-O -fdump-tree-veclower" } */
#define vidx(type, vec, idx) (*((type *) &(vec) + idx))
Index: vect/vect-scal-opt2.c
===================================================================
*** vect/vect-scal-opt2.c (revision 166486)
--- vect/vect-scal-opt2.c (working copy)
***************
*** 1,4 ****
--- 1,6 ----
/* { dg-do compile } */
+ /* { dg-require-effective-target vect_shift } */
+ /* { dg-require-effective-target vect_int } */
/* { dg-options "-O -fdump-tree-veclower" } */
#define vidx(type, vec, idx) (*((type *) &(vec) + idx))