PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr69820.c
blobbe24e4fa9a1343e4308bfd967f1ccfdd3549db5c
1 /* PR tree-optimization/69820 */
3 #include "tree-vect.h"
5 unsigned int a[100];
6 long long int b[100];
7 unsigned short c[100];
9 __attribute__((noinline, noclone)) void
10 foo (void)
12 int i;
13 for (i = 0; i < 100; ++i)
14 b[i] = a[i] * (c[i] * (_Bool) c[i]);
17 int
18 main ()
20 int i;
21 if (__SIZEOF_INT__ * __CHAR_BIT__ != 32)
22 return 0;
23 check_vect ();
24 for (i = 0; i < 100; ++i)
26 a[i] = 3489456818U;
27 b[i] = 0x1eadbeefbeefdeadLL;
28 c[i] = 38364;
30 foo ();
31 for (i = 0; i < 100; ++i)
32 if (b[i] != 0xed446af8U)
33 __builtin_abort ();
34 return 0;