public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r15-19] ppc: testsuite: vec-mul requires vsx runtime
@ 2024-04-28 7:42 Alexandre Oliva
0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2024-04-28 7:42 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d48aba3c8b61e4a33d0f1fdd126e5cd15dc99a7f
commit r15-19-gd48aba3c8b61e4a33d0f1fdd126e5cd15dc99a7f
Author: Alexandre Oliva <oliva@adacore.com>
Date: Sun Apr 28 04:30:19 2024 -0300
ppc: testsuite: vec-mul requires vsx runtime
vec-mul is an execution test, but it only requires a powerpc_vsx_ok
effective target, which is enough only for compile tests. In order to
check for runtime and execution environment support, we need to
require vsx_hw. Make that a condition for execution, but still
perform a compile test if the condition is not satisfied.
for gcc/testsuite/ChangeLog
* gcc.target/powerpc/vec-mul.c: Run on target vsx_hw, just
compile otherwise.
Diff:
---
gcc/testsuite/gcc.target/powerpc/vec-mul.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.target/powerpc/vec-mul.c b/gcc/testsuite/gcc.target/powerpc/vec-mul.c
index bfcaf80719d..aa0ef7aa45a 100644
--- a/gcc/testsuite/gcc.target/powerpc/vec-mul.c
+++ b/gcc/testsuite/gcc.target/powerpc/vec-mul.c
@@ -1,5 +1,5 @@
-/* { dg-do run } */
-/* { dg-require-effective-target powerpc_vsx_ok } */
+/* { dg-do compile { target { { ! vsx_hw } && powerpc_vsx_ok } } } */
+/* { dg-do run { target vsx_hw } } */
/* { dg-options "-mvsx -O3" } */
/* Test that the vec_mul builtin works as expected. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-28 7:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-28 7:42 [gcc r15-19] ppc: testsuite: vec-mul requires vsx runtime Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).