rs6000: Fix creation of VEC_COND_EXPR
authorMartin Liska <mliska@suse.cz>
Thu, 18 Jun 2020 07:25:32 +0000 (09:25 +0200)
committerMartin Liska <mliska@suse.cz>
Thu, 18 Jun 2020 14:12:06 +0000 (16:12 +0200)
commite68cc3a8f8a381e5018de4379546c56d1d456c56
treea2627fa53afc4004dbbaa8a9f5998be981e2f710
parentac70b20b1007da0d3d02a9cec3c0715145c4b593
rs6000: Fix creation of VEC_COND_EXPR

gcc/ChangeLog:

* config/rs6000/rs6000-call.c (fold_build_vec_cmp):
Since 502d63b6d6141597bb18fd23c87736a1b384cf8f, first argument
of a VEC_COND_EXPR cannot be tcc_comparison and so that
a SSA_NAME needs to be created before we use it for the first
argument of the VEC_COND_EXPR.
(fold_compare_helper): Pass gsi to fold_build_vec_cmp.
gcc/config/rs6000/rs6000-call.c