PR c++/37276
[official-gcc.git] / gcc / testsuite / gcc.dg / pr23049.c
blobe58cef8fe167ae062b692e08126b18e95252ac38
1 /* This was an ICE in fold where we tried to fold something like,
3 a = 0 == 0 ? 0 : 3988292384
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. */
9 /* { dg-do compile } */
10 /* { dg-require-effective-target int32plus } */
11 /* { dg-options "-O3 -ftree-vectorize" } */
13 static unsigned short int crc_table[256];
14 void AC3_encode_init(void)
16 unsigned int c, n, k;
17 for(n=0; n<256; n++)
19 c = n << 8;
20 for (k = 0; k < 8; k++)
22 if (c & (1 << 15))
23 c = ((c << 1) & 0xffff) ^ (((1 << 0) | (1 << 2) | (1 << 15) | (1 << 16)) & 0xffff);
25 crc_table[n] = c;