From 55c9695cbe91c406805ac0cd342949f32f13b779 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 27 Jul 2020 13:55:38 +0200 Subject: [PATCH] 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. --- .../gcc.target/s390/vector/pr96128.c | 35 +++++++++++++++++++ gcc/tree-vect-generic.c | 3 +- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 gcc/testsuite/gcc.target/s390/vector/pr96128.c 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