Re: [025/nnn] poly_int: SUBREG_BYTE

2017-12-06 Thread Jeff Law
On 10/23/2017 11:10 AM, Richard Sandiford wrote: > This patch changes SUBREG_BYTE from an int to a poly_int. > Since valid SUBREG_BYTEs must be contained within the mode of the > SUBREG_REG, the required range is the same as for GET_MODE_SIZE, > i.e. unsigned short. The patch therefore uses poly_u

[025/nnn] poly_int: SUBREG_BYTE

2017-10-23 Thread Richard Sandiford
This patch changes SUBREG_BYTE from an int to a poly_int. Since valid SUBREG_BYTEs must be contained within the mode of the SUBREG_REG, the required range is the same as for GET_MODE_SIZE, i.e. unsigned short. The patch therefore uses poly_uint16(_pod) for the SUBREG_BYTE. Using poly_uint16_pod r