re PR rtl-optimization/83608 (ICE in convert_move, at expr.c:229 in GIMPLE store...
authorJakub Jelinek <jakub@redhat.com>
Sun, 31 Dec 2017 23:52:01 +0000 (00:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 31 Dec 2017 23:52:01 +0000 (00:52 +0100)
commit0f3f0e4e97a0d564f87cbd8a7dfdaf9be3665fe3
treedbf0da98cfbbbcc90510cf65785816fef4763aaf
parentc1329fc84c8f7ee892070cb4aa514c4dbab70625
re PR rtl-optimization/83608 (ICE in convert_move, at expr.c:229 in GIMPLE store merging pass)

PR middle-end/83608
* expr.c (store_expr_with_bounds): Use simplify_gen_subreg instead of
convert_modes if target mode has the right side, but different mode
class.

* g++.dg/opt/pr83608.C: New test.

From-SVN: r256053
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr83608.C [new file with mode: 0644]