On Wed, Jan 18, 2012 at 12:48:45PM +0100, Aurelien Buhrig wrote: > 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. -- Alan Modra Australia Development Lab, IBM