* ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / inline-8.c
bloba4ac5d0487b50344d697b19bd10498e7b9b793a2
1 /* Verify that we do not inline isnanf test info -ffast-math code but that we
2 do inline trivial functions across -Ofast boundary. */
3 /* { dg-do run } */
4 /* { dg-options "-O2" } */
5 #include <math.h>
6 /* Can't be inlined because isnanf will be optimized out. */
7 int
8 cmp (float a)
10 return isnanf (a);
12 /* Can be inlined. */
13 int
14 move (int a)
16 return a;
18 float a;
19 void
20 set ()
22 a=nan("");
24 float b;
25 __attribute__ ((optimize("Ofast")))
26 int
27 main()
29 b++;
30 if (cmp(a))
31 __builtin_abort ();
32 float a = move (1);
33 if (!__builtin_constant_p (a))
34 __builtin_abort ();
35 return 0;