expr.c (expand_expr, [...]): Don't use gen_lowpart on non-integer modes.
* expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use gen_lowpart on non-integer modes. From-SVN: r66430
This commit is contained in:
parent
ee9609391b
commit
13cf99ece0
2 changed files with 8 additions and 3 deletions
|
@ -19,6 +19,9 @@
|
||||||
|
|
||||||
2003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
2003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||||
|
|
||||||
|
* expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
|
||||||
|
gen_lowpart on non-integer modes.
|
||||||
|
|
||||||
* stor-layout.c (place_field): When adjusting offset_align, use
|
* stor-layout.c (place_field): When adjusting offset_align, use
|
||||||
desired_align, not DECL_ALIGN.
|
desired_align, not DECL_ALIGN.
|
||||||
|
|
||||||
|
|
|
@ -7959,12 +7959,14 @@ expand_expr (exp, target, tmode, modifier)
|
||||||
op0 = expand_expr (TREE_OPERAND (exp, 0), NULL_RTX, mode, modifier);
|
op0 = expand_expr (TREE_OPERAND (exp, 0), NULL_RTX, mode, modifier);
|
||||||
|
|
||||||
/* If the input and output modes are both the same, we are done.
|
/* If the input and output modes are both the same, we are done.
|
||||||
Otherwise, if neither mode is BLKmode and both are within a word, we
|
Otherwise, if neither mode is BLKmode and both are integral and within
|
||||||
can use gen_lowpart. If neither is true, make sure the operand is
|
a word, we can use gen_lowpart. If neither is true, make sure the
|
||||||
in memory and convert the MEM to the new mode. */
|
operand is in memory and convert the MEM to the new mode. */
|
||||||
if (TYPE_MODE (type) == GET_MODE (op0))
|
if (TYPE_MODE (type) == GET_MODE (op0))
|
||||||
;
|
;
|
||||||
else if (TYPE_MODE (type) != BLKmode && GET_MODE (op0) != BLKmode
|
else if (TYPE_MODE (type) != BLKmode && GET_MODE (op0) != BLKmode
|
||||||
|
&& GET_MODE_CLASS (GET_MODE (op0)) == MODE_INT
|
||||||
|
&& GET_MODE_CLASS (TYPE_MODE (type)) == MODE_INT
|
||||||
&& GET_MODE_SIZE (TYPE_MODE (type)) <= UNITS_PER_WORD
|
&& GET_MODE_SIZE (TYPE_MODE (type)) <= UNITS_PER_WORD
|
||||||
&& GET_MODE_SIZE (GET_MODE (op0)) <= UNITS_PER_WORD)
|
&& GET_MODE_SIZE (GET_MODE (op0)) <= UNITS_PER_WORD)
|
||||||
op0 = gen_lowpart (TYPE_MODE (type), op0);
|
op0 = gen_lowpart (TYPE_MODE (type), op0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue