[Bug rtl-optimization/19055] Minor bit optimization with or and xor

2004-12-21 Thread pinskia at gcc dot gnu dot org
--- 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. --

[Bug rtl-optimization/19055] Minor bit optimization with or and xor

2004-12-19 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed||1 Last reconfirmed|-00-00 00:00:00 |2004-12-

[Bug rtl-optimization/19055] Minor bit optimization with or and xor

2004-12-17 Thread pinskia at gcc dot gnu dot org
--- 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://

[Bug rtl-optimization/19055] Minor bit optimization with or and xor

2004-12-17 Thread segher at kernel dot crashing dot org
-- What|Removed |Added CC||segher at kernel dot ||crashing dot org http://gcc.gnu.org/bugz