From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 805233858402; Sun, 28 Apr 2024 05:21:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 805233858402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714281718; bh=2x/+0xeprAw2Ehq8PTixduNrjXfdO8hokVxsupmyiX0=; h=From:To:Subject:Date:From; b=TcZUdMtu9YVuGvouEHPi6Uqe+Z/eDyIyETSsZ2k3thbVfUFiPM7CvqamgLYVOzYJV AiTdanVWT0eq9ppMl39FOPPtmuDen1IX+aXqdPweTlSpYLrO0dnOLnZRmGNFhjiC51 1qtRN1k9XUVJsTJAJg4yUPVTgXLaSitx3448j4OU= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] ppc: testsuite: vec-mul requires vsx runtime X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: 4c42beadc660572409d3e6f452bf4c0209f320c3 X-Git-Newrev: 12759057f7d42045403e7c41216e51c50d26afc9 Message-Id: <20240428052158.805233858402@sourceware.org> Date: Sun, 28 Apr 2024 05:21:58 +0000 (GMT) List-Id: https://gcc.gnu.org/g:12759057f7d42045403e7c41216e51c50d26afc9 commit 12759057f7d42045403e7c41216e51c50d26afc9 Author: Alexandre Oliva 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 | 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. */