From: Jim Wilson Date: Tue, 11 Apr 1995 20:59:16 +0000 (-0700) Subject: (ashlsi3): Use nonmemory_operand as a predicate instead of shiftby_operand. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2f09a2f765cdffb6f40d7c772ab78fe89bdfa69;p=gcc.git (ashlsi3): Use nonmemory_operand as a predicate instead of shiftby_operand. (ashlsi3): Use nonmemory_operand as a predicate instead of shiftby_operand. Don't use shiftby_operand in the output statement. (lshrsi3): Likewise. From-SVN: r9361 --- diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index c17575d8744..5825e7753c4 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -657,10 +657,14 @@ (define_expand "ashlsi3" [(parallel[(set (match_operand:SI 0 "arith_reg_operand" "") (ashift:SI (match_operand:SI 1 "arith_reg_operand" "") - (match_operand:SI 2 "shiftby_operand" ""))) + (match_operand:SI 2 "nonmemory_operand" ""))) (clobber (reg:SI 18))])] "" - "if (! shiftby_operand (operands[2], SImode)) FAIL;") + " +{ + if (! immediate_operand (operands[2], GET_MODE (operands[2]))) + FAIL; +}") ; ; arithmetic shift right @@ -776,10 +780,14 @@ (define_expand "lshrsi3" [(parallel[(set (match_operand:SI 0 "arith_reg_operand" "") (lshiftrt:SI (match_operand:SI 1 "arith_reg_operand" "") - (match_operand:SI 2 "shiftby_operand" ""))) + (match_operand:SI 2 "nonmemory_operand" ""))) (clobber (reg:SI 18))])] "" - "if (! shiftby_operand (operands[2], SImode)) FAIL;") + " +{ + if (! immediate_operand (operands[2], GET_MODE (operands[2]))) + FAIL; +}") (define_insn "ashldi3_k" [(set (match_operand:DI 0 "arith_reg_operand" "=r")