gcc/gcc/testsuite/gcc.dg/builtins-15.c
Roger Sayle e43736ad2e re PR rtl-optimization/10764 (ICE when using log(), -fast-math and optimization)
PR optimization/10764
	* config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
	Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
	(*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
	add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
	(logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
	the corresponding *fyl2x_?fxf3 instructions.

	* gcc.dg/builtins-15.c: New test case.

From-SVN: r66811
2003-05-14 21:13:49 +00:00

18 lines
214 B
C

/* Derived from PR optimization/10764 */
/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math" } */
double log(double x);
double ndtri(double y0)
{
double x;
x = log(y0);
x = log(x);
return x;
}