Message ID | VI1PR0802MB2176D1F885BAED8A3CA15F9FE7F40@VI1PR0802MB2176.eurprd08.prod.outlook.com |
---|---|
State | New |
Headers | show |
On 09/19/2016 08:54 AM, Bin Cheng wrote: > Hi, > Case gcc.dg/vect/pr57558-1.c uses unsigned long at the moment which can't be vectorized on Sparc64. This patch revises it by using unsigned int. I think it's an obvious change. > Test result checked, is it OK? > > Thanks, > bin > > gcc/testsuite/ChangeLog > 2016-09-15 Bin Cheng <bin.cheng@arm.com> > > * gcc.dg/vect/pr57558-1.c: Use unsigned int instead of unsigned long. > OK. jeff
Index: gcc/testsuite/gcc.dg/vect/pr57558-1.c =================================================================== --- gcc/testsuite/gcc.dg/vect/pr57558-1.c (revision 240166) +++ gcc/testsuite/gcc.dg/vect/pr57558-1.c (working copy) @@ -1,10 +1,10 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_int } */ -typedef unsigned long ul; -void foo (ul* __restrict x, ul* __restrict y, ul n) +typedef unsigned int u_int; +void foo (u_int* __restrict x, u_int* __restrict y, u_int n) { - ul i; + u_int i; for (i=1; i<=n; i++, x++, y++) *x += *y; }