* gcc.c-torture/execute/pr68532.c: Add -fno-common option on
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr68532.c
blobac677cbc28748d44ad16bd3385b6dd1d596c0a71
1 /* { dg-options "-O2 -ftree-vectorize -fno-vect-cost-model" } */
2 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
4 #define SIZE 128
5 unsigned short _Alignas (16) in[SIZE];
7 __attribute__ ((noinline)) int
8 test (unsigned short sum, unsigned short *in, int x)
10 for (int j = 0; j < SIZE; j += 8)
11 sum += in[j] * x;
12 return sum;
15 int
16 main ()
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;