From: David S. Miller Date: Tue, 13 Jul 2004 01:36:38 +0000 (+0000) Subject: sparc.md (ashlsi3): Eliminate const 1 special case. X-Git-Tag: releases/gcc-4.0.0~6686 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7ae4c28e00b8aeab7f0e67a96ec7ac342fbb9b2;p=thirdparty%2Fgcc.git sparc.md (ashlsi3): Eliminate const 1 special case. 2004-07-12 David S. Miller * config/sparc/sparc.md (ashlsi3): Eliminate const 1 special case. (ashldi3_sp64): Likewise. From-SVN: r84599 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fe84ab5ec211..b7c5f6997475 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-07-12 David S. Miller + + * config/sparc/sparc.md (ashlsi3): Eliminate const 1 + special case. + (ashldi3_sp64): Likewise. + 2004-07-12 John David Anglin PR target/16477 diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md index dc7ef6e80c0e..f81482aecaa3 100644 --- a/gcc/config/sparc/sparc.md +++ b/gcc/config/sparc/sparc.md @@ -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";