annotate gcc/testsuite/gcc.dg/pr23049.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* This was an ICE in fold where we tried to fold something like,
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 a = 0 == 0 ? 0 : 3988292384
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 after doing if-conversion for the vectorizer. Folding "0 == 0"
kono
parents:
diff changeset
6 should have been done before calling fold on the whole rhs of
kono
parents:
diff changeset
7 the above expression. */
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 /* { dg-do compile } */
kono
parents:
diff changeset
10 /* { dg-require-effective-target int32plus } */
kono
parents:
diff changeset
11 /* { dg-options "-O3 -ftree-vectorize" } */
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 static unsigned short int crc_table[256];
kono
parents:
diff changeset
14 void AC3_encode_init(void)
kono
parents:
diff changeset
15 {
kono
parents:
diff changeset
16 unsigned int c, n, k;
kono
parents:
diff changeset
17 for(n=0; n<256; n++)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 c = n << 8;
kono
parents:
diff changeset
20 for (k = 0; k < 8; k++)
kono
parents:
diff changeset
21 {
kono
parents:
diff changeset
22 if (c & (1 << 15))
kono
parents:
diff changeset
23 c = ((c << 1) & 0xffff) ^ (((1 << 0) | (1 << 2) | (1 << 15) | (1 << 16)) & 0xffff);
kono
parents:
diff changeset
24 }
kono
parents:
diff changeset
25 crc_table[n] = c;
kono
parents:
diff changeset
26 }
kono
parents:
diff changeset
27 }