From: Martin Liska Date: Mon, 27 Jul 2020 11:55:38 +0000 (+0200) Subject: Do not expand vector comparison with VEC_COND_EXPR. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55c9695cbe91c406805ac0cd342949f32f13b779;p=gcc.git Do not expand vector comparison with VEC_COND_EXPR. gcc/ChangeLog: PR tree-optimization/96128 * tree-vect-generic.c (expand_vector_comparison): Do not expand vector comparison with VEC_COND_EXPR. gcc/testsuite/ChangeLog: PR tree-optimization/96128 * gcc.target/s390/vector/pr96128.c: New test. --- diff --git a/gcc/testsuite/gcc.target/s390/vector/pr96128.c b/gcc/testsuite/gcc.target/s390/vector/pr96128.c new file mode 100644 index 00000000000..20abe5e515c --- /dev/null +++ b/gcc/testsuite/gcc.target/s390/vector/pr96128.c @@ -0,0 +1,35 @@ +/* PR tree-optimization/96128 */ +/* { dg-options "-march=z13" } */ + +#define B_TEST(TYPE) { TYPE v __attribute__((vector_size(16))); (void)((v < v) < v); } +#ifdef __cplusplus +#define T_TEST(TYPE) { TYPE s; TYPE v __attribute__((vector_size(16))); __typeof((v