PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr70465-2.c
blobd60386d39ce639297ea93becfa480c046901a7aa
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 *-*-* } } } */
6 extern float d[1024];
8 static inline long double
9 foo (long double a, long double b)
11 return a < b ? a : b;
14 static inline long double
15 bar (long double a, long double b)
17 return a > b ? a : b;
20 float
21 baz (void)
23 long double c = d[0];
24 return foo (bar (c, 0.0l), 1.0l);