[RS6000] dg-do !compile and scan-assembler
authorAlan Modra <amodra@gmail.com>
Tue, 27 Oct 2020 07:02:13 +0000 (17:32 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 28 Oct 2020 00:28:10 +0000 (10:58 +1030)
These tests never checked assembly, because .s files were not
produced.  One was looking for the wrong instructions.

A typical error log
PASS: gcc.target/powerpc/vec-permute-ext-runnable.c (test for excess errors)
gcc.target/powerpc/vec-permute-ext-runnable.c output file does not exist
UNRESOLVED: gcc.target/powerpc/vec-permute-ext-runnable.c scan-assembler-times \\mpermx\\M 10

* gcc.target/powerpc/vec-blend-runnable.c: Add save-temps.
* gcc.target/powerpc/vec-insert-word-runnable.c: Likewise.
* gcc.target/powerpc/vec-permute-ext-runnable.c: Likewise.
* gcc.target/powerpc/vec-replace-word-runnable.c: Likewise.
* gcc.target/powerpc/vec-splati-runnable.c: Likewise.
* gcc.target/powerpc/vec-ternarylogic-3.c: Likewise.
* gcc.target/powerpc/vec-ternarylogic-9.c: Likewise.
* gcc.target/powerpc/vsx_mask-count-runnable.c: Likewise.
* gcc.target/powerpc/vsx_mask-expand-runnable.c: Likewise.
* gcc.target/powerpc/vsx_mask-extract-runnable.c: Likewise.
* gcc.target/powerpc/vsx_mask-move-runnable.c: Likewise.
* gcc.target/powerpc/vec-shift-double-runnable.c: Likewise,
and correct assembly match.

12 files changed:
gcc/testsuite/gcc.target/powerpc/vec-blend-runnable.c
gcc/testsuite/gcc.target/powerpc/vec-insert-word-runnable.c
gcc/testsuite/gcc.target/powerpc/vec-permute-ext-runnable.c
gcc/testsuite/gcc.target/powerpc/vec-replace-word-runnable.c
gcc/testsuite/gcc.target/powerpc/vec-shift-double-runnable.c
gcc/testsuite/gcc.target/powerpc/vec-splati-runnable.c
gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-3.c
gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-9.c
gcc/testsuite/gcc.target/powerpc/vsx_mask-count-runnable.c
gcc/testsuite/gcc.target/powerpc/vsx_mask-expand-runnable.c
gcc/testsuite/gcc.target/powerpc/vsx_mask-extract-runnable.c
gcc/testsuite/gcc.target/powerpc/vsx_mask-move-runnable.c

index f614ade49b2c6def623927d393790ea3a45c4ca8..d63dfeec5686fd0415904c85937a0ded630dfdff 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run { target { power10_hw } } } */
 /* { dg-do link { target { ! power10_hw } } } */
 /* { dg-require-effective-target power10_ok } */
-/* { dg-options "-mdejagnu-cpu=power10" } */
+/* { dg-options "-mdejagnu-cpu=power10 -save-temps" } */
 #include <altivec.h>
 
 #define DEBUG 0
index c458e001d74f917c916cb004155471b6ecb11144..bd96e13a90165498c618ceae2cbceeb2f1751803 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run { target { power10_hw } } } */
 /* { dg-do link { target { ! power10_hw } } } */
 /* { dg-require-effective-target power10_ok } */
-/* { dg-options "-mdejagnu-cpu=power10" } */
+/* { dg-options "-mdejagnu-cpu=power10 -save-temps" } */
 #include <altivec.h>
 
 #define DEBUG 0
index 069581fb60870b6441cb07aa2531f527843e3eb1..f8332652b47070c0fd141a0c3e571b5b39cf6218 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run { target { power10_hw } } } */
 /* { dg-do link { target { ! power10_hw } } } */
 /* { dg-require-effective-target power10_ok } */
-/* { dg-options "-mdejagnu-cpu=power10" } */
+/* { dg-options "-mdejagnu-cpu=power10 -save-temps" } */
 #include <altivec.h>
 
 #define DEBUG 0
index 81c475f2908595534892b3d8f8bd435d83f88ad1..9497cbf2ab0812acd007a0cffd8103dbb210f14e 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run { target { power10_hw } } } */
 /* { dg-do link { target { ! power10_hw } } } */
 /* { dg-require-effective-target power10_ok } */
-/* { dg-options "-mdejagnu-cpu=power10" } */
+/* { dg-options "-mdejagnu-cpu=power10 -save-temps" } */
 
 #include <altivec.h>
 
index 4c1e0c4e7935fc9b9bbd929cf4e8086c50595731..90b19f031315dfafd34dbf42a94416cd878a57ab 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run { target { power10_hw } } } */
 /* { dg-do link { target { ! power10_hw } } } */
 /* { dg-require-effective-target power10_ok } */
-/* { dg-options "-mdejagnu-cpu=power10" } */
+/* { dg-options "-mdejagnu-cpu=power10 -save-temps" } */
 #include <altivec.h>
 
 #define DEBUG 0
@@ -379,7 +379,5 @@ main (int argc, char *argv [])
   return 0;
 }
 
-/* { dg-final { scan-assembler-times {\msldbi\M} 6 } } */
-/* { dg-final { scan-assembler-times {\msrdbi\M} 6 } } */
-
-
+/* { dg-final { scan-assembler-times {\mvsldbi\M} 8 } } */
+/* { dg-final { scan-assembler-times {\mvsrdbi\M} 8 } } */
index 1c8fdc5a3dfdc5554a02ac5c8627104d6c71d24f..e84ce77a21db11d6f38c4dbff1742c980845c83a 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run { target { power10_hw } } } */
 /* { dg-do link { target { ! power10_hw } } } */
 /* { dg-require-effective-target power10_ok } */
-/* { dg-options "-mdejagnu-cpu=power10" } */
+/* { dg-options "-mdejagnu-cpu=power10 -save-temps" } */
 #include <altivec.h>
 
 #define DEBUG 0
index 47bca10fa580378d738afb3e59c00e9a601292fb..9697068e2350c192a989a0e57eb7f97c60955391 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run { target { power10_hw } } } */
 /* { dg-do link { target { ! power10_hw } } } */
 /* { dg-require-effective-target power10_ok } */
-/* { dg-options "-mdejagnu-cpu=power10" } */
+/* { dg-options "-mdejagnu-cpu=power10 -save-temps" } */
 
 #include <altivec.h>
 
index 71e52ee880bd7eca6870cd77f8c48b9bfb9e025c..bcf4a3522663a87f679e28a2f997e5b6507c9cfb 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-do link { target { ! power10_hw } } } */
 /* { dg-require-effective-target power10_ok } */
 /* { dg-require-effective-target int128 } */
-/* { dg-options "-mdejagnu-cpu=power10" } */
+/* { dg-options "-mdejagnu-cpu=power10 -save-temps" } */
 
 #include <altivec.h>
 
index 28aa7da9d1f5335d7d9eee9afba79ef0aa5f97dd..1ea2d65abf9a73563be371d92671ca3c25571196 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run { target { power10_hw } } } */
 /* { dg-do link { target { ! power10_hw } } } */
-/* { dg-options "-mdejagnu-cpu=power10 -O2" } */
+/* { dg-options "-mdejagnu-cpu=power10 -O2 -save-temps" } */
 /* { dg-require-effective-target power10_ok } */
 /* { dg-require-effective-target int128 } */
 
index 68c1c3f1c9a16dc227cdbeff38ebfc436ebdc474..2c49814e0f7525f99833e0595516dbf2d01e0039 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run { target { power10_hw } } } */
 /* { dg-do link { target { ! power10_hw } } } */
-/* { dg-options "-mdejagnu-cpu=power10 -O2" } */
+/* { dg-options "-mdejagnu-cpu=power10 -O2 -save-temps" } */
 /* { dg-require-effective-target power10_ok } */
 /* { dg-require-effective-target int128 } */
 
index 4664807a69e9f080d3af589c87f45fedd8c0119e..9e257f5de7b1592b92b16d319bdada40a430b216 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run { target { power10_hw } } } */
 /* { dg-do link { target { ! power10_hw } } } */
-/* { dg-options "-mdejagnu-cpu=power10 -O2" } */
+/* { dg-options "-mdejagnu-cpu=power10 -O2 -save-temps" } */
 /* { dg-require-effective-target power10_ok } */
 /* { dg-require-effective-target int128 } */
 
index 58954dc5fc9e3c1ae2482eccb4c64e7fbaccc570..53fd99ed299141d6488943cf5f01fc16bfe0969e 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run { target { power10_hw } } } */
 /* { dg-do link { target { ! power10_hw } } } */
-/* { dg-options "-mdejagnu-cpu=power10 -O2" } */
+/* { dg-options "-mdejagnu-cpu=power10 -O2 -save-temps" } */
 /* { dg-require-effective-target power10_ok } */
 /* { dg-require-effective-target int128 } */