IBM Z: Update autovec-*-quiet-uneq expectations
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 23 Nov 2020 20:13:40 +0000 (21:13 +0100)
committerIlya Leoshkevich <iii@linux.ibm.com>
Tue, 24 Nov 2020 11:20:54 +0000 (12:20 +0100)
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  <iii@linux.ibm.com>

* 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/testsuite/gcc.target/s390/zvector/autovec-double-quiet-uneq.c
gcc/testsuite/gcc.target/s390/zvector/autovec-float-quiet-uneq.c

index 3d6da30beacd0f0372a8d284c0cc11adf05c7124..7c9b20fd2e0f20615f4f08858417a7f96b62b485 100644 (file)
@@ -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} } } */
index 1df53a99bc8cbc5ea3a71b47a59f9ca89ce437a1..5ab9337880d006e8c6023c4022e227a8124123ae 100644 (file)
@@ -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} } } */