2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr23098.c
blob7f118bb02f99cab833a8bfad5c52e0e39e39bdb1
1 /* PR rtl-optimization/23098 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fPIC" } */
4 /* { dg-final { scan-assembler-not "\.LC\[0-9\]" } } */
5 /* { dg-require-effective-target ia32 } */
6 /* { dg-require-effective-target fpic } */
8 double foo (float);
10 double
11 f1 (void)
13 return foo (1.0);
16 double
17 f2 (void)
19 return foo (0.0);
22 void
23 f3 (float *x, float t)
25 *x = 0.0 + t;