Message ID | 201011221336.01631.ebotcazou@adacore.com |
---|---|
State | New |
Headers | show |
On Mon, Nov 22, 2010 at 1:36 PM, Eric Botcazou <ebotcazou@adacore.com> wrote: > 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? Ok. Thanks, Richard. > > 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" } } */