annotate gcc/testsuite/gcc.dg/20070112-1.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* We used to ICE on this testcase: the address of bad_spill_regs is
kono
parents:
diff changeset
2 only taken in a phi node, which we missed and cleared its TREE_ADDRESSABLE
kono
parents:
diff changeset
3 flag. This gets revealed when the loop is completely unrolled, thus
kono
parents:
diff changeset
4 exposing the addresses as ordinary statements. */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 /* { dg-do compile } */
kono
parents:
diff changeset
7 /* { dg-options "-O1" } */
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 typedef unsigned HARD_REG_SET[2];
kono
parents:
diff changeset
11 static HARD_REG_SET bad_spill_regs;
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 void
kono
parents:
diff changeset
14 order_regs_for_reload ()
kono
parents:
diff changeset
15 {
kono
parents:
diff changeset
16 register int i;
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 register unsigned *scan_tp_ = bad_spill_regs;
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 for (i = 0; i < 2; i++)
kono
parents:
diff changeset
21 *scan_tp_++ = 0;
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 bad_spill_regs[0] |= 1;
kono
parents:
diff changeset
24 }