PR modula2/115540 gcc/m2/mc-boot-ch/Gtermios.cc error return-statement with a value
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr70354-2.c
blobcb4cdaae30ba5760fc32e255b651072ca397a499
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 #pragma GCC novector
33 for (i = 0; i < 64; i++)
34 if (a[i] != (0x1234ULL << (i % 54)))
35 abort ();
36 return 0;