From 8d8563aebac33f1f72727f8a6c8fdd2d6670ad01 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Mon, 6 May 2002 14:31:56 -0700 Subject: [PATCH] sparc.md (shift insns): Do not mask off second operand... 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. From-SVN: r53238 --- gcc/config/sparc/sparc.md | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md index 2af9153a0c3..98fd14e6207 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")])