From: Per Bothner Date: Fri, 26 Aug 1994 00:15:35 +0000 (-0700) Subject: Always store into multi-word bitfields starting with low addresses. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=556a4cb2c9fb6366ade3edc4cebd907b336ed83e;p=gcc.git Always store into multi-word bitfields starting with low addresses. From-SVN: r7985 --- diff --git a/gcc/expmed.c b/gcc/expmed.c index ab685eafcad..026b6503ec5 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -313,12 +313,8 @@ store_bit_field (str_rtx, bitsize, bitnum, fieldmode, value, align, total_size) for (i = 0; i < nwords; i++) { - /* If I is 0, use the low-order word in both field and target; - if I is 1, use the next to lowest word; and so on. */ - int wordnum = (WORDS_BIG_ENDIAN ? nwords - i - 1 : i); - int bit_offset = (WORDS_BIG_ENDIAN - ? MAX (bitsize - (i + 1) * BITS_PER_WORD, 0) - : i * BITS_PER_WORD); + int wordnum = i; + int bit_offset = i * BITS_PER_WORD; store_bit_field (op0, MIN (BITS_PER_WORD, bitsize - i * BITS_PER_WORD), bitnum + bit_offset, word_mode,