expmed.c (store_bit_field): Use simplify_gen_subreg to make SUBREG so we avoid SUBREGing memory.
* expmed.c (store_bit_field): Use simplify_gen_subreg to make SUBREG so we avoid SUBREGing memory. From-SVN: r46721
This commit is contained in:
parent
c9e8cb32e3
commit
bb33f166a5
2 changed files with 6 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-11-02 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* expmed.c (store_bit_field): Use simplify_gen_subreg to make
|
||||
SUBREG so we avoid SUBREGing memory.
|
||||
|
||||
2001-11-02 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
|
||||
|
|
|
@ -638,12 +638,7 @@ store_bit_field (str_rtx, bitsize, bitnum, fieldmode, value, align, total_size)
|
|||
if we must narrow it, be sure we do it correctly. */
|
||||
|
||||
if (GET_MODE_SIZE (GET_MODE (value)) < GET_MODE_SIZE (maxmode))
|
||||
{
|
||||
/* Avoid making subreg of a subreg, or of a mem. */
|
||||
if (GET_CODE (value1) != REG)
|
||||
value1 = copy_to_reg (value1);
|
||||
value1 = gen_rtx_SUBREG (maxmode, value1, 0);
|
||||
}
|
||||
value1 = simplify_gen_subreg (maxmode, value1, GET_MODE (value1), 0);
|
||||
else
|
||||
value1 = gen_lowpart (maxmode, value1);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue