[Bug rtl-optimization/22568] Should use cmov in some stituations
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jan 15 04:05:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list