https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83609
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Jan 1 11:28:57 2018 New Revision: 256062 URL: https://gcc.gnu.org/viewcvs?rev=256062&root=gcc&view=rev Log: PR middle-end/83609 * expr.c (expand_assignment): Fix up a typo in simplify_gen_subreg last argument when extracting from CONCAT. If either from_real or from_imag is NULL, use expansion through memory. If result is not a CONCAT and simplify_gen_subreg fails, try to simplify_gen_subreg the parts directly to inner mode, if even that fails, use expansion through memory. * gcc.dg/pr83609.c: New test. * g++.dg/opt/pr83609.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/opt/pr83609.C branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr83609.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/expr.c branches/gcc-7-branch/gcc/testsuite/ChangeLog