sparc.md (ashlsi3): Eliminate const 1 special case.

2004-07-12  David S. Miller  <davem@nuts.davemloft.net>

	* config/sparc/sparc.md (ashlsi3): Eliminate const 1
	special case.
	(ashldi3_sp64): Likewise.

From-SVN: r84599
This commit is contained in:
David S. Miller 2004-07-13 01:36:38 +00:00 committed by David S. Miller
parent 7ea18c086b
commit d7ae4c28e0
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2004-07-12 David S. Miller <davem@nuts.davemloft.net>
* config/sparc/sparc.md (ashlsi3): Eliminate const 1
special case.
(ashldi3_sp64): Likewise.
2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/16477

View File

@ -6951,8 +6951,6 @@
(match_operand:SI 2 "arith_operand" "rI")))]
""
{
if (operands[2] == const1_rtx)
return "add\t%1, %1, %0";
if (GET_CODE (operands[2]) == CONST_INT)
operands[2] = GEN_INT (INTVAL (operands[2]) & 0x1f);
return "sll\t%1, %2, %0";
@ -6982,8 +6980,6 @@
(match_operand:SI 2 "arith_operand" "rI")))]
"TARGET_ARCH64"
{
if (operands[2] == const1_rtx)
return "add\t%1, %1, %0";
if (GET_CODE (operands[2]) == CONST_INT)
operands[2] = GEN_INT (INTVAL (operands[2]) & 0x3f);
return "sllx\t%1, %2, %0";