re PR target/82112 (internal compiler error: in fold_convert_loc, at fold-const.c...
authorJakub Jelinek <jakub@redhat.com>
Tue, 12 Sep 2017 15:25:15 +0000 (17:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 12 Sep 2017 15:25:15 +0000 (17:25 +0200)
commitcbc45bea5f58a19d0545d1101a0a0c1a9e7760d2
treeea5c4c4a0d3679e0987b6d888e875b12f5432a2c
parent2afb2668ad15d17d225e97856354bf15041e5316
re PR target/82112 (internal compiler error: in fold_convert_loc, at fold-const.c:2262)

PR target/82112
* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
ALTIVEC_BUILTIN_VEC_LD if arg1 has array type call default_conversion
on it early, rather than manual conversion late.  For
ALTIVEC_BUILTIN_VEC_ST if arg2 has array type call default_conversion
instead of performing manual conversion.

* gcc.target/powerpc/pr82112.c: New test.
* g++.dg/ext/altivec-18.C: New test.

From-SVN: r252028
gcc/ChangeLog
gcc/config/rs6000/rs6000-c.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/altivec-18.C [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr82112.c [new file with mode: 0644]