Commit 48c23a6c by Paul Brook Committed by Paul Brook

thumb2.md (thumb2_negscc): Match the correct operand for optimized LT0 test.

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
parent 4b738718
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
......
......@@ -755,15 +755,12 @@
(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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment