re PR target/84710 (ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno...
authorJakub Jelinek <jakub@redhat.com>
Tue, 6 Mar 2018 20:41:37 +0000 (21:41 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 6 Mar 2018 20:41:37 +0000 (21:41 +0100)
commit2728bf8f131f42c43cc4b309bf4d949a0bea601d
tree26d9143b9f0c8efc23a075271e91492c87be6419
parent284ee475e1c239b9d74bd2c5fc7dde457c9db4f7
re PR target/84710 (ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1896 with -O -fno-forward-propagate)

PR target/84710
* combine.c (try_combine): Use reg_or_subregno instead of handling
just paradoxical SUBREGs and REGs.

* gcc.dg/pr84710.c: New test.

From-SVN: r258301
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84710.c [new file with mode: 0644]