From: Jim Wilson Date: Thu, 27 Jun 1996 22:48:57 +0000 (-0700) Subject: (extract_bit_field): Check TRULY_NOOP_TRUNCATION before X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8fe20b224e983e7cb930a04ed6b574cf0f01d60;p=gcc.git (extract_bit_field): Check TRULY_NOOP_TRUNCATION before making a SUBREG of a REG. From-SVN: r12338 --- diff --git a/gcc/expmed.c b/gcc/expmed.c index be27f855ae8..a5939423034 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -928,7 +928,9 @@ extract_bit_field (str_rtx, bitsize, bitnum, unsignedp, So too extracting a subword value in the least significant part of the register. */ - if ((GET_CODE (op0) == REG + if (((GET_CODE (op0) == REG + && TRULY_NOOP_TRUNCATION (GET_MODE_BITSIZE (mode), + GET_MODE_BITSIZE (GET_MODE (op0)))) || (GET_CODE (op0) == MEM && (! SLOW_UNALIGNED_ACCESS || (offset * BITS_PER_UNIT % bitsize == 0