expmed.c (store_bit_field): Ignore adjustment to bitpos and use bitnum to decide about register move.
* expmed.c (store_bit_field): Ignore adjustment to bitpos and use bitnum to decide about register move. From-SVN: r45215
This commit is contained in:
parent
a224278b11
commit
f21bdd05bd
@ -1,3 +1,8 @@
|
|||||||
|
2001-08-27 Roman Zippel <zippel@linux-m68k.org>
|
||||||
|
|
||||||
|
* expmed.c (store_bit_field): Ignore adjustment to bitpos
|
||||||
|
and use bitnum to decide about register move.
|
||||||
|
|
||||||
2001-08-27 Richard Henderson <rth@redhat.com>
|
2001-08-27 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* genattr.c (main): Emit state_t even when not doing scheduling.
|
* genattr.c (main): Emit state_t even when not doing scheduling.
|
||||||
|
@ -350,14 +350,14 @@ store_bit_field (str_rtx, bitsize, bitnum, fieldmode, value, align, total_size)
|
|||||||
done with a simple store. For targets that support fast unaligned
|
done with a simple store. For targets that support fast unaligned
|
||||||
memory, any naturally sized, unit aligned field can be done directly. */
|
memory, any naturally sized, unit aligned field can be done directly. */
|
||||||
|
|
||||||
if (bitsize == GET_MODE_BITSIZE (fieldmode)
|
if (bitnum == 0
|
||||||
|
&& bitsize == GET_MODE_BITSIZE (fieldmode)
|
||||||
&& (GET_CODE (op0) != MEM
|
&& (GET_CODE (op0) != MEM
|
||||||
? (GET_MODE_SIZE (fieldmode) >= UNITS_PER_WORD
|
? (GET_MODE_SIZE (fieldmode) >= UNITS_PER_WORD
|
||||||
|| GET_MODE_SIZE (GET_MODE (op0)) == GET_MODE_SIZE (fieldmode))
|
|| GET_MODE_SIZE (GET_MODE (op0)) == GET_MODE_SIZE (fieldmode))
|
||||||
: (! SLOW_UNALIGNED_ACCESS (fieldmode, align)
|
: (! SLOW_UNALIGNED_ACCESS (fieldmode, align)
|
||||||
|| (offset * BITS_PER_UNIT % bitsize == 0
|
|| (offset * BITS_PER_UNIT % bitsize == 0
|
||||||
&& align % GET_MODE_BITSIZE (fieldmode) == 0)))
|
&& align % GET_MODE_BITSIZE (fieldmode) == 0))))
|
||||||
&& (BYTES_BIG_ENDIAN ? bitpos + bitsize == unit : bitpos == 0))
|
|
||||||
{
|
{
|
||||||
if (GET_MODE (op0) != fieldmode)
|
if (GET_MODE (op0) != fieldmode)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user