--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-22
07:42 ---
I had forgot to mention, I found this when Nathan was asking about a~=b (aka
a&=~b) and Segher
sugessted a^=b;a|=b; and then we (Segher and I) both noticed that gcc was not
doing the optimization.
--
--
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever Confirmed||1
Last reconfirmed|-00-00 00:00:00 |2004-12-
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-17
14:25 ---
Another example where we don't get the optimization and f1 is still one
instruction (on 32bit PPC):
int f(int a,int b)
{
a|=b;
a^=b;
return a;
}
int f1(int a,int b)
{
return a&=~b;
}
--
http://
--
What|Removed |Added
CC||segher at kernel dot
||crashing dot org
http://gcc.gnu.org/bugz