summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr23098.c
blob: d91bf2a5f64121e7c79c89dff465931b11857bdf (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
/* PR rtl-optimization/23098 */
/* { dg-do compile } */
/* { dg-options "-O2 -fPIC" } */
/* { dg-final { scan-assembler-not "\.LC\[0-9\]" { xfail *-*-vxworks* } } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target fpic } */

double foo (float);

double
f1 (void)
{
  return foo (1.0);
}

double
f2 (void)
{
  return foo (0.0);
}

void
f3 (float *x, float t)
{
  *x = 0.0 + t;
}