From d2f09a2f765cdffb6f40d7c772ab78fe89bdfa69 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 11 Apr 1995 13:59:16 -0700 Subject: [PATCH] (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 --- gcc/config/sh/sh.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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") -- 2.30.2