]> gcc.gnu.org Git - gcc.git/commitdiff
(extract_bit_field): Check TRULY_NOOP_TRUNCATION before
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 27 Jun 1996 22:48:57 +0000 (15:48 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 27 Jun 1996 22:48:57 +0000 (15:48 -0700)
making a SUBREG of a REG.

From-SVN: r12338

gcc/expmed.c

index be27f855ae84011130696f2f85cc2a773e5cac93..a59394230348c1804a92f2dc7df9439402cb765f 100644 (file)
@@ -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
This page took 0.107902 seconds and 5 git commands to generate.