1 /* PR target/70465 */
2 /* { dg-do compile { target ia32 } } */
3 /* { dg-options "-O2 -mfpmath=387 -fomit-frame-pointer" } */
4 /* { dg-final { scan-assembler-not "fxch\t%st.1" } } */
5 
6 double
atan2(double y,double x)7 atan2 (double y, double x)
8 {
9   double res = 0.0;
10   asm ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)");
11   return res;
12 }
13