summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/headmerge-2.c
blob: aa2e562556bbd13e0333dea18677104ce5fbb0a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* { dg-do compile }  */
/* { dg-options "-O2" }  */
/* { dg-final { scan-assembler-times "\\\$120|, 120" 1 } } */

extern void foo1 (int);
extern void foo2 (int);
extern void foo3 (int);
extern void foo4 (int);
extern void foo5 (int);
extern void foo6 (int);

void t (int x, int y)
{
  switch (y)
    {
    case 1:
      foo1 (120);
      break;
    case 5:
      foo2 (120);
      break;
    case 7:
      foo3 (120);
      break;
    case 10:
      foo4 (120);
      break;
    case 13:
      foo5 (120);
      break;
    default:
      foo6 (120);
      break;
    }
}