]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR rtl-optimization/77919 (ICE converting DC to V2DF mode)
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 May 2017 07:36:52 +0000 (09:36 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 May 2017 07:36:52 +0000 (09:36 +0200)
commit039fc560d9c42de7947e47b1515641de8f672296
tree715fbbf6319a41f89d76d919eb7ab5698bb7f143
parentc1d9256ba093e101dd007607c8f8b8efbbb3b83a
backport: re PR rtl-optimization/77919 (ICE converting DC to V2DF mode)

Backported from mainline
2016-10-29  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/77919
* expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
into memory if both modes are complex and their inner modes have the
same precision.  If the two modes are different complex modes, convert
each part separately and generate a new CONCAT.

* g++.dg/torture/pr77919-2.C: New test.

From-SVN: r248619
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr77919-2.C [new file with mode: 0644]