comparison gcc/testsuite/gcc.dg/vect/pr70354-2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR tree-optimization/70354 */
2
3 #ifndef main
4 #include "tree-vect.h"
5 #endif
6
7 unsigned long long a[64], b[64];
8
9 __attribute__((noinline, noclone)) void
10 foo (void)
11 {
12 int i;
13 for (i = 0; i < 64; i++)
14 a[i] <<= (b[i] - 0x1200000000ULL);
15 }
16
17 int
18 main ()
19 {
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++)
27 {
28 a[i] = 0x1234ULL;
29 b[i] = 0x1200000000ULL + (i % 54);
30 }
31 foo ();
32 for (i = 0; i < 64; i++)
33 if (a[i] != (0x1234ULL << (i % 54)))
34 abort ();
35 return 0;
36 }