1 /* { dg-options "-O2 -ftree-vectorize -fno-vect-cost-model" } */ 2 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ 3 4 #define SIZE 128 5 unsigned short _Alignas (16) in[SIZE]; 6 7 __attribute__ ((noinline)) int test(unsigned short sum,unsigned short * in,int x)8test (unsigned short sum, unsigned short *in, int x) 9 { 10 for (int j = 0; j < SIZE; j += 8) 11 sum += in[j] * x; 12 return sum; 13 } 14 15 int main()16main () 17 { 18 for (int i = 0; i < SIZE; i++) 19 in[i] = i; 20 if (test (0, in, 1) != 960) 21 __builtin_abort (); 22 return 0; 23 } 24