This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/53291] New: Code generated for xtest is wrong
- From: "kirill.yukhin at intel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 May 2012 07:32:06 +0000
- Subject: [Bug target/53291] New: Code generated for xtest is wrong
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53291
Bug #: 53291
Summary: Code generated for xtest is wrong
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: kirill.yukhin@intel.com
Hi,
Andi discovered that xtest instruction generation is wrong.
It generates
xorl %esi, %esi
xtest
sete %sil
but correct is reverse
movl $1,%esi
xtest
setne %sil