re PR rtl-optimization/77919 (ICE converting DC to V2DF mode)
authorJakub Jelinek <jakub@redhat.com>
Sat, 29 Oct 2016 20:22:36 +0000 (22:22 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 29 Oct 2016 20:22:36 +0000 (22:22 +0200)
commit205b9ed14e15672ea5496d48430f954d12b089a3
treeaa26aad337f9a7f61eff3d734f7a3f9e8de39d3d
parente421be7677f480f1ca5842c5a2a96c829fd47266
re PR rtl-optimization/77919 (ICE converting DC to V2DF mode)

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: r241681
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr77919-2.C [new file with mode: 0644]