Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr61572.c
blob345633393b6803f196c2f393bce0f3f66a338ff4
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 struct autofs_sb_info
6 int exp_timeout;
7 };
8 void *f;
9 int g;
10 static int fn1 (struct autofs_sb_info *p1)
12 int a, b;
13 a = (
15 register __typeof__(0) c
16 #if defined __x86_64__
17 asm("rdx")
18 #endif
20 b = c;
21 int d;
22 __typeof__(0) e;
23 e = p1->exp_timeout / 1000;
24 switch (0)
25 default:
26 asm("" : "=a"(d) : "0"(e), ""(0));
28 });
29 if (a)
30 return 1;
31 if (b)
32 p1->exp_timeout = 0;
33 return 0;
36 int fn2 ()
38 struct autofs_sb_info *h = f;
39 switch (g)
41 case 0 ?:
42 0 : return fn1 (h);
43 default:
44 return 0;