summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/headmerge-2.c
blob: 17d8e9365c52e1788874e4287ab20cb4bac8f350 (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\n" 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;
    }
}