[RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block...
[official-gcc.git] / gcc / testsuite / gcc.dg / 20050105-1.c
blob58a75150bdb1a637ff4b49a4a04ea210111e317a
1 /* PR rtl-optimization/18861 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 extern void abort (void);
7 int
8 foo (int code)
10 if (code >= 3)
11 switch (code)
13 case 3: return 4;
14 case 4: return 3;
15 case 5: return 6;
16 case 6: return 7;
17 case 7: return 8;
18 case 8: return 5;
19 default: abort ();
21 switch (code)
23 case 3: return 4;
24 case 4: return 3;
25 case 5: return 6;
26 case 6: return 7;
27 case 7: return 8;
28 case 8: return 5;
29 default: abort ();