This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/23102] extra XORs generated on i686
- From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Aug 2005 17:06:48 -0000
- Subject: [Bug target/23102] extra XORs generated on i686
- References: <20050727220013.23102.dann@godzilla.ics.uci.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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