improve test for last change
authorDavid Edelsohn <edelsohn@gnu.org>
Thu, 8 May 1997 02:20:15 +0000 (02:20 +0000)
committerDavid Edelsohn <edelsohn@gnu.org>
Thu, 8 May 1997 02:20:15 +0000 (02:20 +0000)
From-SVN: r14046

gcc/config/rs6000/rs6000.md

index 4b71bea394f3206fbf1d219aa83967548e318973..8c4f0b37bf6244dc9facfa493082d7c9ef684c43 100644 (file)
                         (match_operand:SI 2 "const_int_operand" "i"))
        (lshiftrt:SI (match_operand:SI 3 "gpc_reg_operand" "r")
                     (match_operand:SI 4 "const_int_operand" "i")))]
-  "(32 - INTVAL (operands[4])) >= INTVAL (operands[1])"
+  "(32 - (INTVAL (operands[4]) & 31)) >= INTVAL (operands[1])"
   "*
 {
   int shift = INTVAL (operands[4]) & 31;