From fbd4553d99bc918b645194da1dba9e8f5f1cdece Mon Sep 17 00:00:00 2001 From: Ilya Leoshkevich Date: Mon, 23 Nov 2020 21:13:40 +0100 Subject: [PATCH] IBM Z: Update autovec-*-quiet-uneq expectations Commit 229752afe315 ("VEC_COND_EXPR optimizations") has improved code generation: we no longer need "vx x,x,-1", which turned out to be superfluous. Instead, we simply swap 0 and -1 arguments of the preceding "vsel". gcc/testsuite/ChangeLog: 2020-11-23 Ilya Leoshkevich * gcc.target/s390/zvector/autovec-double-quiet-uneq.c: Expect that "vx" is not emitted. * gcc.target/s390/zvector/autovec-float-quiet-uneq.c: Likewise. --- .../gcc.target/s390/zvector/autovec-double-quiet-uneq.c | 5 ++++- .../gcc.target/s390/zvector/autovec-float-quiet-uneq.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/s390/zvector/autovec-double-quiet-uneq.c b/gcc/testsuite/gcc.target/s390/zvector/autovec-double-quiet-uneq.c index 3d6da30beac..7c9b20fd2e0 100644 --- a/gcc/testsuite/gcc.target/s390/zvector/autovec-double-quiet-uneq.c +++ b/gcc/testsuite/gcc.target/s390/zvector/autovec-double-quiet-uneq.c @@ -5,6 +5,9 @@ AUTOVEC_DOUBLE (QUIET_UNEQ); +/* { dg-final { scan-assembler {\n\tvzero\t} } } */ +/* { dg-final { scan-assembler {\n\tvgmg\t} } } */ /* { dg-final { scan-assembler-times {\n\tvfchdb\t} 2 } } */ /* { dg-final { scan-assembler {\n\tvo\t} } } */ -/* { dg-final { scan-assembler {\n\tvx\t} } } */ +/* { dg-final { scan-assembler {\n\tvsel\t} } } */ +/* { dg-final { scan-assembler-not {\n\tvx\t} } } */ diff --git a/gcc/testsuite/gcc.target/s390/zvector/autovec-float-quiet-uneq.c b/gcc/testsuite/gcc.target/s390/zvector/autovec-float-quiet-uneq.c index 1df53a99bc8..5ab9337880d 100644 --- a/gcc/testsuite/gcc.target/s390/zvector/autovec-float-quiet-uneq.c +++ b/gcc/testsuite/gcc.target/s390/zvector/autovec-float-quiet-uneq.c @@ -5,6 +5,9 @@ AUTOVEC_FLOAT (QUIET_UNEQ); +/* { dg-final { scan-assembler {\n\tvzero\t} } } */ +/* { dg-final { scan-assembler {\n\tvgmf\t} } } */ /* { dg-final { scan-assembler-times {\n\tvfchsb\t} 2 } } */ /* { dg-final { scan-assembler {\n\tvo\t} } } */ -/* { dg-final { scan-assembler {\n\tvx\t} } } */ +/* { dg-final { scan-assembler {\n\tvsel\t} } } */ +/* { dg-final { scan-assembler-not {\n\tvx\t} } } */ -- 2.30.2