This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Why no conditional move on this file?


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));
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]