re PR target/81622 (ICE on invalid altivec code with ppc64{,le})
authorJakub Jelinek <jakub@redhat.com>
Tue, 1 Aug 2017 16:34:31 +0000 (18:34 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 1 Aug 2017 16:34:31 +0000 (18:34 +0200)
commit636730cadd8be7f6280ea673cf44573bd49c37b0
tree3b5d3a64f03d1e23f0dfdc3e695117572dcceee9
parent8e1863eca8c8914cc5e05369dacdc5266cdca179
re PR target/81622 (ICE on invalid altivec code with ppc64{,le})

PR target/81622
* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
__builtin_vec_cmpne verify both arguments are compatible vectors
before looking at TYPE_MODE on the element type.  For __builtin_vec_ld
verify arg1_type is a pointer or array type.  For __builtin_vec_st,
move computation of aligned to after checking the argument types.
Formatting fixes.

* gcc.target/powerpc/pr81622.c: New test.

From-SVN: r250785
gcc/ChangeLog
gcc/config/rs6000/rs6000-c.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr81622.c [new file with mode: 0644]