annotate gcc/testsuite/gcc.c-torture/compile/20031220-1.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 /* PR optimization/13031 */
kono
parents:
diff changeset
2 /* The following code used to ICE on alphaev67-*-* at -O2 with an
kono
parents:
diff changeset
3 unrecognizable instruction, caused by local register allocation
kono
parents:
diff changeset
4 substituting a register for a constant in a conditional branch. */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 void emit(int, int);
kono
parents:
diff changeset
7 int f(void);
kono
parents:
diff changeset
8 static int signals[5];
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 static inline void select(int sel, void *klass)
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 emit(klass ? 0 : f(), signals[sel ? 0 : 1]);
kono
parents:
diff changeset
13 }
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 void all(void *gil, void *l, void *icon)
kono
parents:
diff changeset
16 {
kono
parents:
diff changeset
17 while (l)
kono
parents:
diff changeset
18 if (icon)
kono
parents:
diff changeset
19 select(0, gil);
kono
parents:
diff changeset
20 }
kono
parents:
diff changeset
21