]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
thumb2.md (thumb2_negscc): Match the correct operand for optimized LT0 test.
authorPaul Brook <paul@codesourcery.com>
Mon, 1 Sep 2008 22:02:55 +0000 (22:02 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Mon, 1 Sep 2008 22:02:55 +0000 (22:02 +0000)
2008-09-01  Paul Brook  <paul@codesourcery.com>

gcc/
* config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
optimized LT0 test.  Remove optimization for GT.

From-SVN: r139873

gcc/ChangeLog
gcc/config/arm/thumb2.md

index 43bb844f6aff1a05cdb65905427b0b3cb8885c56..e271d88d170d3d1c7ef5153b7bfa86244b52f7a0 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-01  Paul Brook  <paul@codesourcery.com>
+
+       * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
+       optimized LT0 test.  Remove optimization for GT.
+
 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * pa64-hpux.h (LIB_SPEC): Link against librt when building static
index f33d8206a1f2d2deb5d6c5a7481dc299652b50c3..2417650adbbdf519bfdd75624b444d2a475b7d24 100644 (file)
    (clobber (reg:CC CC_REGNUM))]
   "TARGET_THUMB2"
   "*
-  if (GET_CODE (operands[3]) == LT && operands[3] == const0_rtx)
+  if (GET_CODE (operands[3]) == LT && operands[2] == const0_rtx)
     return \"asr\\t%0, %1, #31\";
 
   if (GET_CODE (operands[3]) == NE)
     return \"subs\\t%0, %1, %2\;it\\tne\;mvnne\\t%0, #0\";
 
-  if (GET_CODE (operands[3]) == GT)
-    return \"subs\\t%0, %1, %2\;it\\tne\;mvnne\\t%0, %0, asr #31\";
-
   output_asm_insn (\"cmp\\t%1, %2\", operands);
   output_asm_insn (\"ite\\t%D3\", operands);
   output_asm_insn (\"mov%D3\\t%0, #0\", operands);