From 556a4cb2c9fb6366ade3edc4cebd907b336ed83e Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Thu, 25 Aug 1994 17:15:35 -0700 Subject: [PATCH] Always store into multi-word bitfields starting with low addresses. From-SVN: r7985 --- gcc/expmed.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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, -- 2.30.2