https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89535
--- Comment #3 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> --- Author: rsandifo Date: Fri Mar 1 13:05:40 2019 New Revision: 269308 URL: https://gcc.gnu.org/viewcvs?rev=269308&root=gcc&view=rev Log: Fix mask type choice in vectorizable_call (PR 89535) This is another case in which we were failing to pass the expected mask vector type to vect_get_vec_def_for_operand. 2019-02-28 Richard Sandiford <richard.sandif...@arm.com> gcc/ PR tree-optimization/89535 * tree-vect-stmts.c (vectorizable_call): Record the vector types for each operand. Calculate the fallback choice for mask operands and pass it to vect_get_vec_def_for_operand. gcc/testsuite/ PR tree-optimization/89535 * gfortran.dg/vect/pr89535.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/vect/pr89535.f90 Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vect-stmts.c