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.ch...@arm.com>
* gcc.dg/vect/pr57558-1.c: Use unsigned int instead of unsigned long.
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;
}