https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81622
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Aug 1 16:44:17 2017 New Revision: 250787 URL: https://gcc.gnu.org/viewcvs?rev=250787&root=gcc&view=rev Log: 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. Added: branches/gcc-7-branch/gcc/testsuite/gcc.target/powerpc/pr81622.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/config/rs6000/rs6000-c.c branches/gcc-7-branch/gcc/testsuite/ChangeLog