This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/34968] ICE: verify_ssa fails when optimization trigonometric code
- From: "dougkwan at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2008 04:03:50 -0000
- Subject: [Bug c/34968] ICE: verify_ssa fails when optimization trigonometric code
- References: <bug-34968-14703@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from dougkwan at google dot com 2008-01-25 04:03 -------
Another test case:
extern __inline double atan (double __x)
{
register double __result;
__asm __volatile__ ("fld1; fpatan" : "=t" (__result) : "0" (__x) : "st(1)");
return __result;
}
f(double *p)
{
double theta;
double cos_theta, sin_theta;
theta = atan(*p);
sin_theta = sin(theta);
cos_theta = cos(theta);
*p = atan(sin_theta * cos_theta);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34968