Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / pr23049.c
blob0a71cecb21795f8236f204125713b693bb0021aa
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-options "-O3 -ftree-vectorize" } */
12 static unsigned short int crc_table[256];
13 void AC3_encode_init(void)
15 unsigned int c, n, k;
16 for(n=0; n<256; n++)
18 c = n << 8;
19 for (k = 0; k < 8; k++)
21 if (c & (1 << 15))
22 c = ((c << 1) & 0xffff) ^ (((1 << 0) | (1 << 2) | (1 << 15) | (1 << 16)) & 0xffff);
24 crc_table[n] = c;