From: davem Date: Mon, 6 May 2002 21:31:56 +0000 (+0000) Subject: 2002-05-06 David S. Miller X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c5fc395adb15cc96f2b746cb32f52df5a1b93fb;p=thirdparty%2Fgcc.git 2002-05-06 David S. Miller * config/sparc/sparc.md (shift insns): Do not mask off second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED take care of it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53238 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md index 2af9153a0c32..98fd14e62075 100644 --- a/gcc/config/sparc/sparc.md +++ b/gcc/config/sparc/sparc.md @@ -7241,10 +7241,6 @@ "" "* { - if (GET_CODE (operands[2]) == CONST_INT - && (unsigned HOST_WIDE_INT) INTVAL (operands[2]) > 31) - operands[2] = GEN_INT (INTVAL (operands[2]) & 0x1f); - if (operands[2] == const1_rtx) return \"add\\t%1, %1, %0\"; return \"sll\\t%1, %2, %0\"; @@ -7276,10 +7272,6 @@ "TARGET_ARCH64" "* { - if (GET_CODE (operands[2]) == CONST_INT - && (unsigned HOST_WIDE_INT) INTVAL (operands[2]) > 63) - operands[2] = GEN_INT (INTVAL (operands[2]) & 0x3f); - if (operands[2] == const1_rtx) return \"add\\t%1, %1, %0\"; return \"sllx\\t%1, %2, %0\"; @@ -7344,10 +7336,6 @@ "" "* { - if (GET_CODE (operands[2]) == CONST_INT - && (unsigned HOST_WIDE_INT) INTVAL (operands[2]) > 31) - operands[2] = GEN_INT (INTVAL (operands[2]) & 0x1f); - return \"sra\\t%1, %2, %0\"; }" [(set_attr "type" "shift")]) @@ -7405,10 +7393,6 @@ "TARGET_ARCH64" "* { - if (GET_CODE (operands[2]) == CONST_INT - && (unsigned HOST_WIDE_INT) INTVAL (operands[2]) > 63) - operands[2] = GEN_INT (INTVAL (operands[2]) & 0x3f); - return \"srax\\t%1, %2, %0\"; }" [(set_attr "type" "shift")]) @@ -7431,10 +7415,6 @@ "" "* { - if (GET_CODE (operands[2]) == CONST_INT - && (unsigned HOST_WIDE_INT) INTVAL (operands[2]) > 31) - operands[2] = GEN_INT (INTVAL (operands[2]) & 0x1f); - return \"srl\\t%1, %2, %0\"; }" [(set_attr "type" "shift")]) @@ -7502,10 +7482,6 @@ "TARGET_ARCH64" "* { - if (GET_CODE (operands[2]) == CONST_INT - && (unsigned HOST_WIDE_INT) INTVAL (operands[2]) > 63) - operands[2] = GEN_INT (INTVAL (operands[2]) & 0x3f); - return \"srlx\\t%1, %2, %0\"; }" [(set_attr "type" "shift")])