OSDN Git Service

Add comment provided by Jim Wilson.
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Sep 1998 16:24:09 +0000 (16:24 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Sep 1998 16:24:09 +0000 (16:24 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22560 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/expmed.c

index c022fc6..8351c37 100644 (file)
@@ -1,3 +1,7 @@
+Wed Sep 23 16:22:01 1998  Nick Clifton  <nickc@cygnus.com>
+
+       * expmed.c (extract_bit_field): Add comment from Jim Wilson. 
+
 Wed Sep 23 13:26:02 1998  Richard Henderson  <rth@cygnus.com>
 
        * alpha.c (get_aligned_mem): Revert Sep 20 change.
index 730d904..734365f 100644 (file)
@@ -983,6 +983,10 @@ extract_bit_field (str_rtx, bitsize, bitnum, unsignedp,
       && ((bitsize >= BITS_PER_WORD && bitsize == GET_MODE_BITSIZE (mode)
           && bitpos % BITS_PER_WORD == 0)
          || (mode_for_size (bitsize, GET_MODE_CLASS (tmode), 0) != BLKmode
+             /* ??? The big endian test here is wrong.  This is correct
+                if the value is in a register, and if mode_for_size is not
+                the same mode as op0.  This causes us to get unnecessarily
+                inefficient code from the Thumb port when -mbig-endian.  */
              && (BYTES_BIG_ENDIAN
                  ? bitpos + bitsize == BITS_PER_WORD
                  : bitpos == 0))))