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] Add missing selector to gcc.dg/vect/pr46009.c


Hi,

the loops contain multiplications:

  for (i = 0; i < 1024; i++)
    {
      g = a[i] + b[i] + c[i] * d[i];;
      e[i] = g < 10 ? 1 : g;
    }

so they cannot be vectorized on the SPARC.

Tested on SPARC/Solaris 8 and i586-suse-linux, OK for mainline?


2010-11-22  Eric Botcazou  <ebotcazou@adacore.com>

	PR testsuite/46230
	* gcc.dg/vect/pr46009.c: Add vect_int_mult target selector.


-- 
Eric Botcazou
Index: gcc.dg/vect/pr46009.c
===================================================================
--- gcc.dg/vect/pr46009.c	(revision 167022)
+++ gcc.dg/vect/pr46009.c	(working copy)
@@ -70,5 +70,5 @@ main (void)
   return 0;
 }
 
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect"  } } */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { target vect_int_mult } } } */
 /* { 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]