[Bug target/23102] extra XORs generated on i686

dann at godzilla dot ics dot uci dot edu gcc-bugzilla@gcc.gnu.org
Thu Aug 4 17:06:00 GMT 2005


------- Additional Comments From dann at godzilla dot ics dot uci dot edu  2005-08-04 17:06 -------
(In reply to comment #3)
> Try killing the peephole2 for this.  Somebody elses cost-metric should force
> the constant into a register for the move ...

Killing the peephole2 would just produce the code produced for i386 as shown in
the original report.
What we want is something like 
xorl %ecx, %ecx
movl    %ecx, 3144(%eax)
movl    %ecx, 3124(%eax)
... etc etc


-- 


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



More information about the Gcc-bugs mailing list