This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Why no conditional move on this file?
- To: john at feith dot com (John Wehle)
- Subject: Why no conditional move on this file?
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 5 Jun 1998 22:04:04 -0700 (PDT)
- Cc: rth at cygnus dot com, egcs at cygnus dot com
Hi,
It seems that the PPro conditional move doesn't apply to the FP
comparison. I didn't see any fcmovxx from this source code.
Any ideas?
Thanks.
H.J.
----
double
foo (double x, double y, double z)
{
x = (y > z) ? y : z;
return x;
}
main ()
{
double x = 10;
double y = -10;
double z = -20;
printf ("%f\n", foo(x, y, z));
}