[gcc r11-7922] testsuite: Disable zero-scratch-regs-{8, 9, 10, 11}.c on all but ... [PR97680]

Jakub Jelinek jakub@gcc.gnu.org
Wed Mar 31 06:58:12 GMT 2021


https://gcc.gnu.org/g:0989e99470c2a6797bacf6d04888bc9a46a632a8

commit r11-7922-g0989e99470c2a6797bacf6d04888bc9a46a632a8
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Mar 31 08:55:38 2021 +0200

    testsuite: Disable zero-scratch-regs-{8, 9, 10, 11}.c on all but ... [PR97680]
    
    Seems the target hook is only defined on
    config/i386/i386.c:#undef TARGET_ZERO_CALL_USED_REGS
    config/i386/i386.c:#define TARGET_ZERO_CALL_USED_REGS ix86_zero_call_used_regs
    config/sparc/sparc.c:#undef TARGET_ZERO_CALL_USED_REGS
    config/sparc/sparc.c:#define TARGET_ZERO_CALL_USED_REGS sparc_zero_call_used_regs
    but apparently many of the tests actually succeed on various targets that
    don't define those hooks.  E.g. I haven't seen them to fail on aarch64,
    on arm only the -10.c fails, on powerpc*/s390* all {8,9,10,11} fail (plus
    5 is skipped on power*-aix*).
    On ia64 according to testresults {6,7,8,9,10,11} fail, some with ICEs.
    On mipsel according to testresults {9,10,11} fail, some with ICEs.
    On nvptx at least 1-9 succeed, 10-11 don't know, don't have assert.h around.
    
    I've kept {5,6,7} with aix,ia64,ia64 skipped because those seems like
    outliers, it works pretty much everywhere but on those.
    The rest have known good targets.
    
    2021-03-31  Jakub Jelinek  <jakub@redhat.com>
    
            PR testsuite/97680
            * c-c++-common/zero-scratch-regs-6.c: Skip on ia64.
            * c-c++-common/zero-scratch-regs-7.c: Likewise.
            * c-c++-common/zero-scratch-regs-8.c: Change from dg-skip-if of
            selected unsupported triplets to all targets but selected triplets
            of supported targets.
            * c-c++-common/zero-scratch-regs-9.c: Likewise.
            * c-c++-common/zero-scratch-regs-10.c: Likewise.
            * c-c++-common/zero-scratch-regs-11.c: Likewise.

Diff:
---
 gcc/testsuite/c-c++-common/zero-scratch-regs-10.c | 3 +--
 gcc/testsuite/c-c++-common/zero-scratch-regs-11.c | 2 +-
 gcc/testsuite/c-c++-common/zero-scratch-regs-6.c  | 1 +
 gcc/testsuite/c-c++-common/zero-scratch-regs-7.c  | 1 +
 gcc/testsuite/c-c++-common/zero-scratch-regs-8.c  | 2 +-
 gcc/testsuite/c-c++-common/zero-scratch-regs-9.c  | 2 +-
 6 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/gcc/testsuite/c-c++-common/zero-scratch-regs-10.c b/gcc/testsuite/c-c++-common/zero-scratch-regs-10.c
index f393a3b9c5b..ab17143bc4b 100644
--- a/gcc/testsuite/c-c++-common/zero-scratch-regs-10.c
+++ b/gcc/testsuite/c-c++-common/zero-scratch-regs-10.c
@@ -1,6 +1,5 @@
 /* { dg-do run } */
-/* { dg-skip-if "not implemented" { powerpc*-*-* } } */
-/* { dg-skip-if "not implemented" { arm*-*-* } } */
+/* { dg-skip-if "not implemented" { ! { i?86*-*-* x86_64*-*-* sparc*-*-* aarch64*-*-* nvptx*-*-* } } } */
 /* { dg-options "-O2" } */
 
 #include <assert.h>
diff --git a/gcc/testsuite/c-c++-common/zero-scratch-regs-11.c b/gcc/testsuite/c-c++-common/zero-scratch-regs-11.c
index b04b6a29b62..6642a377798 100644
--- a/gcc/testsuite/c-c++-common/zero-scratch-regs-11.c
+++ b/gcc/testsuite/c-c++-common/zero-scratch-regs-11.c
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-skip-if "not implemented" { powerpc*-*-* } } */
+/* { dg-skip-if "not implemented" { ! { i?86*-*-* x86_64*-*-* sparc*-*-* aarch64*-*-* arm*-*-* nvptx*-*-* } } } */
 /* { dg-options "-O2 -fzero-call-used-regs=all" } */
 
 #include "zero-scratch-regs-10.c"
diff --git a/gcc/testsuite/c-c++-common/zero-scratch-regs-6.c b/gcc/testsuite/c-c++-common/zero-scratch-regs-6.c
index 80f5bbb632a..b038a253de4 100644
--- a/gcc/testsuite/c-c++-common/zero-scratch-regs-6.c
+++ b/gcc/testsuite/c-c++-common/zero-scratch-regs-6.c
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-skip-if "not implemented" { ia64*-*-* } } */
 /* { dg-options "-O2 -fzero-call-used-regs=all-gpr-arg" } */
 
 #include "zero-scratch-regs-1.c"
diff --git a/gcc/testsuite/c-c++-common/zero-scratch-regs-7.c b/gcc/testsuite/c-c++-common/zero-scratch-regs-7.c
index 159f35cb047..2a4c8b2e73d 100644
--- a/gcc/testsuite/c-c++-common/zero-scratch-regs-7.c
+++ b/gcc/testsuite/c-c++-common/zero-scratch-regs-7.c
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-skip-if "not implemented" { ia64*-*-* } } */
 /* { dg-options "-O2 -fzero-call-used-regs=all-gpr" } */
 
 #include "zero-scratch-regs-1.c"
diff --git a/gcc/testsuite/c-c++-common/zero-scratch-regs-8.c b/gcc/testsuite/c-c++-common/zero-scratch-regs-8.c
index f612a04294c..867c6bdce2c 100644
--- a/gcc/testsuite/c-c++-common/zero-scratch-regs-8.c
+++ b/gcc/testsuite/c-c++-common/zero-scratch-regs-8.c
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-skip-if "not implemented" { powerpc*-*-* } } */
+/* { dg-skip-if "not implemented" { ! { i?86*-*-* x86_64*-*-* sparc*-*-* aarch64*-*-* arm*-*-* nvptx*-*-* } } } */
 /* { dg-options "-O2 -fzero-call-used-regs=all-arg" } */
 
 #include "zero-scratch-regs-1.c"
diff --git a/gcc/testsuite/c-c++-common/zero-scratch-regs-9.c b/gcc/testsuite/c-c++-common/zero-scratch-regs-9.c
index 2c63a6906fe..4b45d7061df 100644
--- a/gcc/testsuite/c-c++-common/zero-scratch-regs-9.c
+++ b/gcc/testsuite/c-c++-common/zero-scratch-regs-9.c
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-skip-if "not implemented" { powerpc*-*-* } } */
+/* { dg-skip-if "not implemented" { ! { i?86*-*-* x86_64*-*-* sparc*-*-* aarch64*-*-* arm*-*-* nvptx*-*-* } } } */
 /* { dg-options "-O2 -fzero-call-used-regs=all" } */
 
 #include "zero-scratch-regs-1.c"


More information about the Gcc-cvs mailing list