2004-07-12 David S. Miller <davem@nuts.davemloft.net>
authordavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Jul 2004 01:36:38 +0000 (01:36 +0000)
committerdavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Jul 2004 01:36:38 +0000 (01:36 +0000)
* config/sparc/sparc.md (ashlsi3): Eliminate const 1
special case.
(ashldi3_sp64): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84599 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sparc/sparc.md

index fe84ab5..b7c5f69 100644 (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
index dc7ef6e..f81482a 100644 (file)
                   (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";
                   (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";