From e0d1958fc33b635c29e522ec05d3a11fad642e46 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 19 Jan 2011 11:33:44 -0800 Subject: [PATCH] mn10300: Use reg_or_am33_const_operand in mulsi3. From-SVN: r169017 --- gcc/ChangeLog | 5 +++++ gcc/config/mn10300/mn10300.md | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ddb6b99f6bd..edd22f1a817 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-01-19 Richard Henderson + + * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand. + (*mulsi3): Likewise. + 2011-01-19 Ulrich Weigand * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case. diff --git a/gcc/config/mn10300/mn10300.md b/gcc/config/mn10300/mn10300.md index bb95b3734cc..57606e492af 100644 --- a/gcc/config/mn10300/mn10300.md +++ b/gcc/config/mn10300/mn10300.md @@ -1013,19 +1013,19 @@ ) (define_expand "mulsi3" - [(parallel [(set (match_operand:SI 0 "register_operand" "") - (mult:SI (match_operand:SI 1 "register_operand" "") - (match_operand:SI 2 "nonmemory_operand" ""))) - (clobber (match_scratch:SI 3 "")) + [(parallel [(set (match_operand:SI 0 "register_operand") + (mult:SI (match_operand:SI 1 "register_operand") + (match_operand:SI 2 "reg_or_am33_const_operand"))) + (clobber (match_scratch:SI 3)) (clobber (reg:CC CC_REG))])] "" ) (define_insn "*mulsi3" - [(set (match_operand:SI 0 "register_operand" "=D, r,r") - (mult:SI (match_operand:SI 2 "register_operand" "%0, 0,r") - (match_operand:SI 3 "nonmemory_operand" " D,ri,r"))) - (clobber (match_scratch:SI 1 "=z, z,r")) + [(set (match_operand:SI 0 "register_operand" "=D, r,r") + (mult:SI (match_operand:SI 2 "register_operand" "%0, 0,r") + (match_operand:SI 3 "reg_or_am33_const_operand" " D,ri,r"))) + (clobber (match_scratch:SI 1 "=z, z,r")) (clobber (reg:CC CC_REG))] "" { -- 2.30.2