This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug rtl-optimization/22568] Should use cmov in some stituations



------- Comment #10 from pinskia at gcc dot gnu dot org  2006-01-15 04:05 -------
This was not fixed.

If I rewrite the function like:
ulong f1(ulong a, ulong b)
{
  ulong tmp = a<b?b:a;
  ulong tmp1 = a<b?a:b;
  a = tmp;
  b = tmp1;
  return use (a, b)+use(a,b);
}

It works.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22568


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