modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/pr68532.c (about) 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 8 test (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 16 main () 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 }