Le 21/01/2012 03:37, Alan Modra a écrit : >> The problem occurs when value is a REG and bitsize > BITS_PER_WORD. This >> is because wordnum, which is used to get the subword of value, is >> incorrectly computed, in BIG_ENDIAN, wrt the number of words needed by >> bitsize instead of the number of words needed by the integer mode of the >> field, which is the mode used to compute subwords. > > That doesn't sound right. wordnum is passed to operand_subword as its > "offset" param, which counts in words of word_mode size. I think you > have a problem elsewhere. >
The offset is wrong. I filed a bug. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51893