tree ret_var = vect_recog_temp_ssa_var (lhs_type, NULL);
rhs_oprnd = gimple_call_arg (call_stmt, 0);
rhs_type = TREE_TYPE (rhs_oprnd);
- tree cmp = build2_loc (loc, NE_EXPR, boolean_type_node,
- rhs_oprnd, build_zero_cst (rhs_type));
+ tree cmp = vect_recog_temp_ssa_var (boolean_type_node, NULL);
+ pattern_stmt = gimple_build_assign (cmp, NE_EXPR, rhs_oprnd,
+ build_zero_cst (rhs_type));
+ append_pattern_def_seq (vinfo, stmt_vinfo, pattern_stmt,
+ truth_type_for (vec_type), rhs_type);
pattern_stmt = gimple_build_assign (ret_var, COND_EXPR, cmp,
new_var,
build_int_cst (lhs_type, val));