mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-11 10:29:44 +08:00
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
18 lines
214 B
C
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;
|
|
}
|
|
|