SUBREG_PROMOTED_VAR_P handling in expand_direct_optab_fn
commit4a421b8083353cf703427a2b1e61fdc460897405
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 22 Oct 2017 21:41:57 +0000 (22 21:41 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 22 Oct 2017 21:41:57 +0000 (22 21:41 +0000)
treed028c05d20720e17819a5d21a031798677278e6a
parent1048c15588636609c35c11bd401e073d47e7cd54
SUBREG_PROMOTED_VAR_P handling in expand_direct_optab_fn

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.

2017-09-19  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* internal-fn.c (expand_direct_optab_fn): Don't assign directly
to a SUBREG_PROMOTED_VAR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253992 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/internal-fn.c