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

Alexandre Oliva aoliva@gcc.gnu.org
Thu Mar 16 14:22:32 GMT 2023


https://gcc.gnu.org/g:0972309b73fca7f95245ac16b536e3d17d7b66bb

commit 0972309b73fca7f95245ac16b536e3d17d7b66bb
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Tue May 3 14:57:18 2022 -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