summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/headmerge-1.c
blob: 8e913ea440dd5dd8020be11afd2372614643045d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile }  */
/* { dg-require-effective-target nonpic } */
/* { dg-options "-O2" }  */
/* { dg-final { scan-assembler-times "\\\$120|, 120" 1 } } */

extern void foo1 (int);
extern void foo2 (int);

void t (int x, int y)
{
  if (y < 5)
    foo1 (120);
  else
    foo2 (120);
}