Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr70465-2.c

raw
1 /* PR target/70465 */
2 /* { dg-do compile } */
3 /* { dg-options "-Ofast -mfpmath=387 -fomit-frame-pointer" } */
4 /* { dg-final { scan-assembler-not "fxch\t%st.1" { xfail *-*-* } } } */
5
6 extern float d[1024];
7
8 static inline long double
9 foo (long double a, long double b)
10 {
11 return a < b ? a : b;
12 }
13
14 static inline long double
15 bar (long double a, long double b)
16 {
17 return a > b ? a : b;
18 }
19
20 float
21 baz (void)
22 {
23 long double c = d[0];
24 return foo (bar (c, 0.0l), 1.0l);
25 }