re PR target/85503 (ICE in replace_swapped_load_constant, at config/rs6000/rs6000...
authorJakub Jelinek <jakub@redhat.com>
Tue, 24 Apr 2018 16:05:19 +0000 (18:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 24 Apr 2018 16:05:19 +0000 (18:05 +0200)
commitc61199f2df364330e673d35d3fe60e092c3388dd
tree050ceb14b31d791c4ffbdd2801fd64c20ec93270
parent7f3c03bfc1e4fac5c38000ec182b2f35ebcc849f
re PR target/85503 (ICE in replace_swapped_load_constant, at config/rs6000/rs6000-p8swap.c:1853 on powerpc64le-linux-gnu)

PR target/85503
* config/rs6000/rs6000-p8swap.c (const_load_sequence_p): Punt if
const_vector is not CONST_VECTOR or SYMBOL_REF for a constant pool
containing a CONST_VECTOR.

* g++.dg/ext/pr85503.C: New test.

From-SVN: r259607
gcc/ChangeLog
gcc/config/rs6000/rs6000-p8swap.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/pr85503.C [new file with mode: 0644]