summaryrefslogtreecommitdiffstats
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-13 17:01:54 +0000
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-13 17:01:54 +0000
commit15324f8ce0cd61b810e74bf36a0cc0e540553aaa (patch)
treec31c92688ef0d0f6c456eb3c3e5000d06419ed59 /gcc/expr.c
parentacd9c5f5cf7cdfc253211ea3f2f36f6e13a1d665 (diff)
downloadppe42-gcc-15324f8ce0cd61b810e74bf36a0cc0e540553aaa.tar.gz
ppe42-gcc-15324f8ce0cd61b810e74bf36a0cc0e540553aaa.zip
* expr.c (expand_expr): Call convert_modes when turning a large
multiply into a small one. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35662 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 0c609c2eaeb..5a3c303fa4b 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -7473,8 +7473,10 @@ expand_expr (exp, target, tmode, modifier)
op0 = expand_expr (TREE_OPERAND (TREE_OPERAND (exp, 0), 0),
NULL_RTX, VOIDmode, 0);
if (TREE_CODE (TREE_OPERAND (exp, 1)) == INTEGER_CST)
- op1 = expand_expr (TREE_OPERAND (exp, 1), NULL_RTX,
- VOIDmode, 0);
+ op1 = convert_modes (innermode, mode,
+ expand_expr (TREE_OPERAND (exp, 1),
+ NULL_RTX, VOIDmode, 0),
+ unsignedp);
else
op1 = expand_expr (TREE_OPERAND (TREE_OPERAND (exp, 1), 0),
NULL_RTX, VOIDmode, 0);
OpenPOWER on IntegriCloud