]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr23049.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr23049.c
1 /* This was an ICE in fold where we tried to fold something like,
2
3 a = 0 == 0 ? 0 : 3988292384
4
5 after doing if-conversion for the vectorizer. Folding "0 == 0"
6 should have been done before calling fold on the whole rhs of
7 the above expression. */
8
9 /* { dg-do compile } */
10 /* { dg-require-effective-target int32plus } */
11 /* { dg-options "-O3 -ftree-vectorize" } */
12
13 static unsigned short int crc_table[256];
14 void AC3_encode_init(void)
15 {
16 unsigned int c, n, k;
17 for(n=0; n<256; n++)
18 {
19 c = n << 8;
20 for (k = 0; k < 8; k++)
21 {
22 if (c & (1 << 15))
23 c = ((c << 1) & 0xffff) ^ (((1 << 0) | (1 << 2) | (1 << 15) | (1 << 16)) & 0xffff);
24 }
25 crc_table[n] = c;
26 }
27 }