]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ppc: testsuite: vec-mul requires vsx runtime
authorAlexandre Oliva <oliva@adacore.com>
Sun, 28 Apr 2024 07:30:19 +0000 (04:30 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sun, 28 Apr 2024 07:30:19 +0000 (04:30 -0300)
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.

gcc/testsuite/gcc.target/powerpc/vec-mul.c

index bfcaf80719d1d2dfaf163bae964d5bfbd5069720..aa0ef7aa45acc4548c588d52049bc81c5a5c5250 100644 (file)
@@ -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.  */