This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, i386]: Fix PR 53291, Code generated for xtest is wrong
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Andi Kleen <andi at firstfloor dot org>
- Date: Fri, 11 May 2012 01:40:37 +0200
- Subject: [PATCH, i386]: Fix PR 53291, Code generated for xtest is wrong
Hello!
2012-05-11 Uros Bizjak <ubizjak@gmail.com>
PR target/53291
* config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
Tested on x86_64-pc-linux-gnu {,-m32}, and by Andi.
Committed to mainline SVN.
Uros.
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;
})