annotate gcc/testsuite/gcc.dg/torture/pr26587.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do run } */
kono
parents:
diff changeset
2 /* { dg-require-effective-target int32plus } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 extern void abort(void);
kono
parents:
diff changeset
5 typedef unsigned int BF_word;
kono
parents:
diff changeset
6 typedef BF_word BF_key[16 + 2];
kono
parents:
diff changeset
7 static struct {
kono
parents:
diff changeset
8 BF_key P;
kono
parents:
diff changeset
9 } BF_current;
kono
parents:
diff changeset
10 int main(void)
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 BF_word L;
kono
parents:
diff changeset
13 BF_word tmp4, *ptr;
kono
parents:
diff changeset
14 BF_word i;
kono
parents:
diff changeset
15 for (i = 0; i < 16 + 2; i++)
kono
parents:
diff changeset
16 BF_current.P[i] = i * 0x98765432;
kono
parents:
diff changeset
17 L = 0;
kono
parents:
diff changeset
18 ptr = BF_current.P;
kono
parents:
diff changeset
19 do {
kono
parents:
diff changeset
20 ptr += 2;
kono
parents:
diff changeset
21 L ^= BF_current.P[0];
kono
parents:
diff changeset
22 tmp4 = L >> 24;
kono
parents:
diff changeset
23 L = tmp4 ^ BF_current.P[16 + 1];
kono
parents:
diff changeset
24 *(ptr - 2) = L;
kono
parents:
diff changeset
25 } while (ptr < &BF_current.P[16 + 2]);
kono
parents:
diff changeset
26 if (L != 0x1fdb9752)
kono
parents:
diff changeset
27 abort();
kono
parents:
diff changeset
28 return 0;
kono
parents:
diff changeset
29 }