[gcc(refs/users/aoliva/heads/testme)] Add missing dg-require-effective-target to altivec/vsx tests
Alexandre Oliva
aoliva@gcc.gnu.org
Tue Mar 9 02:30:44 GMT 2021
https://gcc.gnu.org/g:61f02e40817faf170c028e766c9b8b78afb100a3
commit 61f02e40817faf170c028e766c9b8b78afb100a3
Author: Douglas B Rupp <rupp@adacore.com>
Date: Fri Feb 26 12:09:33 2021 -0300
Add missing dg-require-effective-target to altivec/vsx tests
Some of the additions are in tests requesting specific cpu
already, where altivec extensions are expected to be available.
The directive makes sense nevertheless as Altivec support is
not a cpu only thing; OS support is needed as well.
for gcc/testsuite/ChangeLog
* gcc.target/powerpc/builtins-1-be-folded.c: Add
dg-require-effective-target powerpc_altivec_ok.
* gcc.target/powerpc/builtins-1.c: Likewise.
* gcc.target/powerpc/builtins-5.c: Likewise.
* gcc.target/powerpc/pr70010-4.c: Add
dg-require-effective-target powerpc_vsx_ok.
* gcc.target/powerpc/pr70010.c: Likewise.
* gcc.target/powerpc/pr83926.c: Likewise.
Diff:
---
gcc/testsuite/gcc.target/powerpc/builtins-1-be-folded.c | 1 +
gcc/testsuite/gcc.target/powerpc/builtins-1.c | 1 +
gcc/testsuite/gcc.target/powerpc/builtins-5.c | 1 +
gcc/testsuite/gcc.target/powerpc/pr70010-4.c | 1 +
gcc/testsuite/gcc.target/powerpc/pr70010.c | 1 +
gcc/testsuite/gcc.target/powerpc/pr83926.c | 4 ++++
6 files changed, 9 insertions(+)
diff --git a/gcc/testsuite/gcc.target/powerpc/builtins-1-be-folded.c b/gcc/testsuite/gcc.target/powerpc/builtins-1-be-folded.c
index 26d10a726e5..f56607a7e4a 100644
--- a/gcc/testsuite/gcc.target/powerpc/builtins-1-be-folded.c
+++ b/gcc/testsuite/gcc.target/powerpc/builtins-1-be-folded.c
@@ -1,5 +1,6 @@
/* { dg-do compile { target { powerpc-*-* } } } */
/* { dg-options "-mdejagnu-cpu=power8 -O2 -mfold-gimple" } */
+/* { dg-require-effective-target powerpc_altivec_ok } */
/* Based on builtins-1-le.c ; ensure that the power8 builtins are accepted by
the compiler, at O2 with gimple folding enabled. */
diff --git a/gcc/testsuite/gcc.target/powerpc/builtins-1.c b/gcc/testsuite/gcc.target/powerpc/builtins-1.c
index 83aed5a5141..535add1c7a5 100644
--- a/gcc/testsuite/gcc.target/powerpc/builtins-1.c
+++ b/gcc/testsuite/gcc.target/powerpc/builtins-1.c
@@ -2,6 +2,7 @@
/* { dg-require-effective-target powerpc_p8vector_ok } */
/* { dg-options "-mdejagnu-cpu=power8 -O0 -mno-fold-gimple -dp" } */
/* { dg-prune-output "gimple folding of rs6000 builtins has been disabled." } */
+/* { dg-require-effective-target powerpc_altivec_ok } */
#include <altivec.h>
diff --git a/gcc/testsuite/gcc.target/powerpc/builtins-5.c b/gcc/testsuite/gcc.target/powerpc/builtins-5.c
index 9c25329fb1e..19d180d507d 100644
--- a/gcc/testsuite/gcc.target/powerpc/builtins-5.c
+++ b/gcc/testsuite/gcc.target/powerpc/builtins-5.c
@@ -2,6 +2,7 @@
/* { dg-require-effective-target powerpc_p8vector_ok } */
/* { dg-options "-mdejagnu-cpu=power8 -O0 -mno-fold-gimple -dp" } */
/* { dg-prune-output "gimple folding of rs6000 builtins has been disabled." } */
+/* { dg-require-effective-target powerpc_altivec_ok } */
#include <altivec.h>
diff --git a/gcc/testsuite/gcc.target/powerpc/pr70010-4.c b/gcc/testsuite/gcc.target/powerpc/pr70010-4.c
index c575cff1b52..87f07adf783 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr70010-4.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr70010-4.c
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -mvsx" } */
vector int c, a, b;
diff --git a/gcc/testsuite/gcc.target/powerpc/pr70010.c b/gcc/testsuite/gcc.target/powerpc/pr70010.c
index 679034fae43..62a4cd72bf1 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr70010.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr70010.c
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -finline-functions -Wno-psabi -mvsx" } */
/* { dg-final { scan-assembler {\mbl \.?vadd_no_vsx\M} } } */
diff --git a/gcc/testsuite/gcc.target/powerpc/pr83926.c b/gcc/testsuite/gcc.target/powerpc/pr83926.c
index 2490e1d48ba..be5eed8f0d9 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr83926.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr83926.c
@@ -1,7 +1,11 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-options "-O2 -mdejagnu-cpu=power8 -mno-fold-gimple" } */
+
/* { dg-prune-output "gimple folding of rs6000 builtins has been disabled." } */
+/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-require-effective-target powerpc_vsx_ok } */
+
__attribute__ ((altivec(vector__))) long long
sdiv (__attribute__ ((altivec(vector__))) long long a,
__attribute__ ((altivec(vector__))) long long b)
More information about the Gcc-cvs
mailing list