diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-27 22:43:37 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-27 22:43:37 +0000 |
| commit | 4a3dcdf1dc1df4ff8b31c1b61d6ce6a33538517b (patch) | |
| tree | 4e1f4a225bb3680339d4e0a49ce1ce791bf90dc2 /gcc/expmed.c | |
| parent | 74e8bf95de812bb4de24ea2c546a09ce44de778e (diff) | |
| download | ppe42-gcc-4a3dcdf1dc1df4ff8b31c1b61d6ce6a33538517b.tar.gz ppe42-gcc-4a3dcdf1dc1df4ff8b31c1b61d6ce6a33538517b.zip | |
* expmed.c (store_bit_field): Ignore adjustment to bitpos
and use bitnum to decide about register move.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45215 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expmed.c')
| -rw-r--r-- | gcc/expmed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c index 7cbc8573f7d..af5e56fdd75 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -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 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_MODE_SIZE (fieldmode) >= UNITS_PER_WORD || GET_MODE_SIZE (GET_MODE (op0)) == GET_MODE_SIZE (fieldmode)) : (! SLOW_UNALIGNED_ACCESS (fieldmode, align) || (offset * BITS_PER_UNIT % bitsize == 0 - && align % GET_MODE_BITSIZE (fieldmode) == 0))) - && (BYTES_BIG_ENDIAN ? bitpos + bitsize == unit : bitpos == 0)) + && align % GET_MODE_BITSIZE (fieldmode) == 0)))) { if (GET_MODE (op0) != fieldmode) { |

