Debian Codegraph @

gcc/testsuite/gcc.target/i386/headmerge-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target nonpic } */
3 /* { dg-options "-O2" } */
4 /* { dg-final { scan-assembler-times "\\\$120|, 120" 1 } } */
5
6 extern void foo1 (int);
7 extern void foo2 (int);
8 extern void foo3 (int);
9 extern void foo4 (int);
10 extern void foo5 (int);
11 extern void foo6 (int);
12
13 void t (int x, int y)
14 {
15 switch (y)
16 {
17 case 1:
18 foo1 (120);
19 break;
20 case 5:
21 foo2 (120);
22 break;
23 case 7:
24 foo3 (120);
25 break;
26 case 10:
27 foo4 (120);
28 break;
29 case 13:
30 foo5 (120);
31 break;
32 default:
33 foo6 (120);
34 break;
35 }
36 }