[gcc(refs/users/aoliva/heads/testme)] ppc: testsuite: vec-mul requires vsx runtime

Alexandre Oliva aoliva@gcc.gnu.org
Sun Apr 21 20:28:11 GMT 2024


https://gcc.gnu.org/g:0197e8f80932063526f0bd7437c80c9ca420cf38

commit 0197e8f80932063526f0bd7437c80c9ca420cf38
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Sun Apr 21 17:24:37 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
    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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/powerpc/vec-mul.c b/gcc/testsuite/gcc.target/powerpc/vec-mul.c
index bfcaf80719d..11da8615972 100644
--- a/gcc/testsuite/gcc.target/powerpc/vec-mul.c
+++ b/gcc/testsuite/gcc.target/powerpc/vec-mul.c
@@ -1,4 +1,5 @@
-/* { dg-do run } */
+/* { dg-do compile { target { ! vsx_hw } } } */
+/* { dg-do run { target vsx_hw } } */
 /* { dg-require-effective-target powerpc_vsx_ok } */
 /* { dg-options "-mvsx -O3" } */


More information about the Gcc-cvs mailing list