Debian Codegraph @

gcc/testsuite/gcc.dg/crc-from-fedora-packages-18.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-crc-details -O2" } */
3 /* { dg-require-effective-target int32plus } */
4
5 // File - cryptobonrrxternd.i
6 // We don't support this case.
7
8 unsigned char PGP_input[2*100];
9 unsigned long crc24(int len) {
10
11 if (sizeof (long) < 4)
12 __builtin_exit (0);
13
14 long crc;
15 crc = 0xB704CE;
16 int i,j;
17 j = 0;
18 while (len--) {
19 crc ^= (PGP_input[j]) << 16;
20 j++;
21 for (i = 0; i < 8; i++) {
22 crc <<= 1;
23 if (crc & 0x1000000){
24 crc ^= 0x1864CFB;
25 }
26 }
27 }
28 return crc & 0xFFFFFF;
29 }
30
31 /* { dg-final { scan-tree-dump "Polynomial's value is \\\{\[0, \]*0\\\}" "crc" } } */
32 /* { dg-final { scan-tree-dump "maybe contains CRC calculation." "crc" } } */