expr.c (expand_expr): Use gen_int_mode for the argument to gen_rtx_MULT.

* expr.c (expand_expr): Use gen_int_mode for the argument
	to gen_rtx_MULT.

From-SVN: r63110
This commit is contained in:
Daniel Jacobowitz 2003-02-19 14:38:45 +00:00 committed by Daniel Jacobowitz
parent 9e889775d4
commit 48a5f2fabb
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-02-19 Daniel Jacobowitz <drow@mvista.com>
* expr.c (expand_expr): Use gen_int_mode for the argument
to gen_rtx_MULT.
Wed Feb 19 14:22:42 CET 2003 Jan Hubicka <jh@suse.cz>
* i386.md (cosxf2): Fix conditional.

View File

@ -8089,6 +8089,8 @@ expand_expr (exp, target, tmode, modifier)
if (modifier == EXPAND_SUM && mode == ptr_mode
&& host_integerp (TREE_OPERAND (exp, 1), 0))
{
tree exp1 = TREE_OPERAND (exp, 1);
op0 = expand_expr (TREE_OPERAND (exp, 0), subtarget, VOIDmode,
EXPAND_SUM);
@ -8107,9 +8109,9 @@ expand_expr (exp, target, tmode, modifier)
if (GET_CODE (op0) != REG)
op0 = copy_to_mode_reg (mode, op0);
return
gen_rtx_MULT (mode, op0,
GEN_INT (tree_low_cst (TREE_OPERAND (exp, 1), 0)));
return gen_rtx_MULT (mode, op0,
gen_int_mode (tree_low_cst (exp1, 0),
TYPE_MODE (TREE_TYPE (exp1))));
}
if (! safe_from_p (subtarget, TREE_OPERAND (exp, 1), 1))