PR 68393: Handle SUBREG_PROMOTED_VAR_P in expand_direct_optab_fn
commita2cdcddbae83dff82294bf3b85b63415c070b60b
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Nov 2015 08:17:21 +0000 (19 08:17 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Nov 2015 08:17:21 +0000 (19 08:17 +0000)
tree5c6549eb554dd14ad1e4a4f1834c2aeeb51136d4
parent2d3d3af78ed241a28055e9c55b56ac10cd26f163
PR 68393: Handle SUBREG_PROMOTED_VAR_P in expand_direct_optab_fn

Do the usual dance when assigning to SUBREG_PROMOTED_VAR_P destinations:
first convert to the outer mode, then extend to the inner mode.

Tested that it fixes the powerpc64le-linux-gnu breakage.  Also tested
on x86_64-linux-gnu and powerpc64-linux-gnu.

gcc/
PR bootstrap/68393
* internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
destinations.

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