This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
 })


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]