(shl_sext_ext): Don't accept simple left/right shift variant.
authorJoern Rennecke <amylaar@gcc.gnu.org>
Tue, 29 Oct 1996 01:08:53 +0000 (01:08 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Tue, 29 Oct 1996 01:08:53 +0000 (01:08 +0000)
From-SVN: r13060

gcc/config/sh/sh.md

index 1a225439c669d165b909f747323abe614c192336..5e99bfd3caaec08f1cd03cd2eac6c102f4c82295 100644 (file)
                         (match_operand:SI 3 "const_int_operand" "n")
                         (const_int 0)))
    (clobber (reg:SI 18))]
-  "shl_sext_kind (operands[2], operands[3], 0) <= 5"
+  "(unsigned)shl_sext_kind (operands[2], operands[3], 0) - 1 < 5"
   "#"
   [(set (attr "length")
        (cond [(eq (symbol_ref "shl_sext_length (insn)") (const_int 1))