aboutsummaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-09-25 00:07:33 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-09-25 00:07:33 -0700
commitea9ea0085603ec807329971f85dbf24e1dd95766 (patch)
treebd0b1429d23267e10fc0b8b9a51efe8152a319ec /gcc/expmed.c
parent07035c0fc663ed7ffe0df00f9194df0e66f4ea2f (diff)
downloadgcc-ea9ea0085603ec807329971f85dbf24e1dd95766.zip
gcc-ea9ea0085603ec807329971f85dbf24e1dd95766.tar.gz
gcc-ea9ea0085603ec807329971f85dbf24e1dd95766.tar.bz2
expmed.c (store_bit_field): Adjust last change to not consider any word-sized field naturally aligned.
* expmed.c (store_bit_field): Adjust last change to not consider any word-sized field naturally aligned. From-SVN: r36601
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index e2ca70a..69761b9 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -305,12 +305,12 @@ store_bit_field (str_rtx, bitsize, bitnum, fieldmode, value, align, total_size)
memory, any naturally sized, unit aligned field can be done directly. */
if (bitsize == GET_MODE_BITSIZE (fieldmode)
- && (GET_MODE_SIZE (fieldmode) >= UNITS_PER_WORD
- || GET_MODE_SIZE (GET_MODE (op0)) == GET_MODE_SIZE (fieldmode)
- || (GET_CODE (op0) == MEM
- && (! SLOW_UNALIGNED_ACCESS (fieldmode, align)
- || (offset * BITS_PER_UNIT % bitsize == 0
- && align % GET_MODE_BITSIZE (fieldmode) == 0))))
+ && (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))
{
if (GET_MODE (op0) != fieldmode)