re PR target/82386 (internal compiler error: Segmentation fault on 32-bit powerpc...
[gcc.git] / gcc / testsuite / gcc.dg / pr82386.c
1 /* PR target/82386 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -w" } */
4 /* { dg-additional-options "-misel" { target powerpc*-*-* } } */
5
6 long long int fs;
7 int vm;
8
9 void
10 sd (void)
11 {
12 fs = 1;
13 vm = 2;
14 goto zf;
15
16 if (0)
17 {
18 int y6 = 0;
19 int *uu = &y6;
20 short int he;
21 int of = 0;
22
23 zf:
24 for (;;)
25 {
26 he = of;
27 if (he || (fs |= vm))
28 {
29 *uu = fs;
30 fs += vm;
31 }
32 if (y6 == vm)
33 fs |= he;
34 he = y6 || fs;
35 fs /= 0;
36 }
37 }
38 }