On Mon, 6 Nov 2017, Richard Sandiford wrote:
fold_binary_loc assumed that if the type of the result wasn't a vector, the operands wouldn't be either. This isn't necessarily true for EQ_EXPR and NE_EXPR of vector masks, which can return a single scalar for the mask as a whole.
Spell it VECTOR_TYPE_P? This looks clearly better, but that whole block of code smells like something that should disappear eventually...
-- Marc Glisse