This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/53291] Code generated for xtest is wrong
- From: "andi-gcc at firstfloor dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 May 2012 17:17:56 +0000
- Subject: [Bug target/53291] Code generated for xtest is wrong
- Auto-submitted: auto-generated
- References: <bug-53291-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53291
--- Comment #3 from Andi Kleen <andi-gcc at firstfloor dot org> 2012-05-09 17:17:56 UTC ---
Correction. We can keep the xor %reg,%reg. We just need it because setnz only
sets 8 bit to initialize the higher order bits.
Alternatively the value can be zero extended afterwards or just stay at 8 bit
if there is no need for it.