middle-end/97579 - lower VECTOR_BOOLEAN_TYPE_P VEC_COND_EXPRs
authorRichard Biener <rguenther@suse.de>
Wed, 25 Nov 2020 11:31:54 +0000 (12:31 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 25 Nov 2020 14:01:17 +0000 (15:01 +0100)
commitfddc7f0080f1f056c4d145451608ebd3e807422a
treeec1d66cbd69f5cdf2be7469896ab06dc6206e76f
parent52ce50d6c59c31454eacf47d6ac70eb3262d08d2
middle-end/97579 - lower VECTOR_BOOLEAN_TYPE_P VEC_COND_EXPRs

This makes sure to lower VECTOR_BOOLEAN_TYPE_P typed non-vector
mode VEC_COND_EXPRs so we don't try to use vcond to expand those.
That's required for x86 and gcn integer mode boolean vectors.

2020-11-25  Richard Biener  <rguenther@suse.de>

PR middle-end/97579
* gimple-isel.cc (gimple_expand_vec_cond_expr): Lower
VECTOR_BOOLEAN_TYPE_P, non-vector mode VEC_COND_EXPRs.

* gcc.dg/pr97579.c: New testcase.
gcc/gimple-isel.cc
gcc/testsuite/gcc.dg/pr97579.c [new file with mode: 0644]