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: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 10 May 2012 20:00:45 +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 #5 from Uros Bizjak <ubizjak at gmail dot com> 2012-05-10 20:00:45 UTC ---
Try this patch:
Index: config/i386/i386.md
===================================================================
--- config/i386/i386.md (revision 187372)
+++ config/i386/i386.md (working copy)
@@ -18422,7 +18422,7 @@
{
emit_insn (gen_xtest_1 ());
- ix86_expand_setcc (operands[0], EQ,
+ ix86_expand_setcc (operands[0], NE,
gen_rtx_REG (CCZmode, FLAGS_REG), const0_rtx);
DONE;
})