Re: Base subreg rules on REGMODE_NATURAL_SIZE rather than UNITS_PER_WORD

2017-11-08 Thread Jeff Law
On 11/06/2017 07:53 AM, Richard Sandiford wrote: >>> 2017-09-18 Richard Sandiford >>> Alan Hayward >>> David Sherwood >>> >>> gcc/ >>> * doc/rtl.texi: Rewrite the subreg rules so that they

Re: Base subreg rules on REGMODE_NATURAL_SIZE rather than UNITS_PER_WORD

2017-11-06 Thread Richard Sandiford
Jeff Law writes: > On 09/18/2017 05:26 AM, Richard Sandiford wrote: >> Originally subregs operated at the word level and subreg offsets >> were measured in words. The offset units were later changed from >> words to bytes (SUBREG_WORD became SUBREG_BYTE), but the fundamental >>

Re: Base subreg rules on REGMODE_NATURAL_SIZE rather than UNITS_PER_WORD

2017-10-13 Thread Jeff Law
On 09/18/2017 05:26 AM, Richard Sandiford wrote: > Originally subregs operated at the word level and subreg offsets > were measured in words. The offset units were later changed from > words to bytes (SUBREG_WORD became SUBREG_BYTE), but the fundamental > assumption that subregs should operate at

Base subreg rules on REGMODE_NATURAL_SIZE rather than UNITS_PER_WORD

2017-09-18 Thread Richard Sandiford
Originally subregs operated at the word level and subreg offsets were measured in words. The offset units were later changed from words to bytes (SUBREG_WORD became SUBREG_BYTE), but the fundamental assumption that subregs should operate at the word level remained. Whether (subreg:M1 (reg:M2 R2)