diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-10-28 10:11:57 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-10-28 10:11:57 +0200 |
commit | c19066a7694429e1d322295800e79dbbdf1c8320 (patch) | |
tree | 3e06ded62d22bf97b2e562e19f2c28c0942e365a /gcc/expr.c | |
parent | 0d9e143c62c7a68474a39de40e5d6104074eee96 (diff) | |
download | gcc-c19066a7694429e1d322295800e79dbbdf1c8320.zip gcc-c19066a7694429e1d322295800e79dbbdf1c8320.tar.gz gcc-c19066a7694429e1d322295800e79dbbdf1c8320.tar.bz2 |
re PR rtl-optimization/77919 (ICE converting DC to V2DF mode)
PR rtl-optimization/77919
* expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
MEM if mode1 is not a complex mode.
* g++.dg/torture/pr77919.C: New test.
From-SVN: r241642
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -10421,7 +10421,8 @@ expand_expr_real_1 (tree exp, rtx target, machine_mode tmode, if (GET_CODE (op0) == CONCAT && !must_force_mem) { if (bitpos == 0 - && bitsize == GET_MODE_BITSIZE (GET_MODE (op0))) + && bitsize == GET_MODE_BITSIZE (GET_MODE (op0)) + && COMPLEX_MODE_P (mode1)) { if (reversep) op0 = flip_storage_order (GET_MODE (op0), op0); |