PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr70354-2.c
blob160e1e083e03e0652d06bf29df060192cbe75fd5
1 /* PR tree-optimization/70354 */
3 #ifndef main
4 #include "tree-vect.h"
5 #endif
7 unsigned long long a[64], b[64];
9 __attribute__((noinline, noclone)) void
10 foo (void)
12 int i;
13 for (i = 0; i < 64; i++)
14 a[i] <<= (b[i] - 0x1200000000ULL);
17 int
18 main ()
20 int i;
21 #ifndef main
22 check_vect ();
23 #endif
24 if (__CHAR_BIT__ != 8 || sizeof (long long int) != 8)
25 return 0;
26 for (i = 0; i < 64; i++)
28 a[i] = 0x1234ULL;
29 b[i] = 0x1200000000ULL + (i % 54);
31 foo ();
32 for (i = 0; i < 64; i++)
33 if (a[i] != (0x1234ULL << (i % 54)))
34 abort ();
35 return 0;