[Bug target/53291] Code generated for xtest is wrong
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu May 10 20:10:00 GMT 2012
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;
})
More information about the Gcc-bugs
mailing list