From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 1E58E385840F; Mon, 22 Apr 2024 06:57:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E58E385840F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713769027; bh=Bs0vYnSJdU9P41YL/Aouuh4gIK7NSVwspfYOqIjaQuY=; h=From:To:Subject:Date:From; b=e4IMgisTrkhgszLnqMEqUDSp2VnOvP9VZVhif5wDUWtkIf/0mHznQZ7TwFTH+0r7P zj2+rKJMMj6jSdapBKp2vxNZxBo6JVAsmN4n3vSBRx9EzgmJDwd3OPzGlK78jYZW6j A9XxNSorOcUxLTh+uhRoVfgSGSQMGzueESFLYn+0= 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: 9c266e6f78ee2bd8fad3b1310996ba5012a16735 X-Git-Newrev: 25b2dc8c3befb8a19584f5052db75753fcd78351 Message-Id: <20240422065707.1E58E385840F@sourceware.org> Date: Mon, 22 Apr 2024 06:57:06 +0000 (GMT) List-Id: https://gcc.gnu.org/g:25b2dc8c3befb8a19584f5052db75753fcd78351 commit 25b2dc8c3befb8a19584f5052db75753fcd78351 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 | 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" } */