Re: SUBREG_PROMOTED_VAR_P handling in expand_direct_optab_fn

2017-10-13 Thread Jeff Law
On 09/20/2017 06:21 AM, Richard Sandiford wrote: > This is needed by the later SVE LAST reductions, where an 8-bit > or 16-bit result is zero- rather than sign-extended to 32 bits. > I think it could occur in other situations too. > > Tested on aarch64-linux-gnu, x86_64-linux-gnu and

SUBREG_PROMOTED_VAR_P handling in expand_direct_optab_fn

2017-09-20 Thread Richard Sandiford
This is needed by the later SVE LAST reductions, where an 8-bit or 16-bit result is zero- rather than sign-extended to 32 bits. I think it could occur in other situations too. Tested on aarch64-linux-gnu, x86_64-linux-gnu and powerpc64le-linus-gnu. OK to install? Richard 2017-09-20 Richard