PR 68393: Handle SUBREG_PROMOTED_VAR_P in expand_direct_optab_fn
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 19 Nov 2015 08:17:21 +0000 (08:17 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 19 Nov 2015 08:17:21 +0000 (08:17 +0000)
commitee1326921d7cb8645bed87b2d9b71f1f74eb6605
tree5c6549eb554dd14ad1e4a4f1834c2aeeb51136d4
parentd0eccfcdc30257a23ce82041a035626350fa421f
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.

From-SVN: r230590
gcc/ChangeLog
gcc/internal-fn.c