From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id DDC75384AB4A; Mon, 22 Apr 2024 05:13:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DDC75384AB4A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713762814; bh=42u0VL0CQDH3rXxhFsZEqzJZFreDcNRdIbiL0JQGJMk=; h=From:To:Subject:Date:From; b=lQNR4bpS9IKWY8nn9UJvwFp9RgSPBZL+p1tJeyL6W701ix3RpcNXA1lkOvkzBBEue WSXwGYQpFO8Jpn9/C3ev8D0HugqB4In37L45Y5o43V+QTKQNZNzmsVNfwVoousUztS xi9BdDT+Z7KHH+GyhQoqG3tsNRd9fa3d92SBadYc= 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: 762f75a75a192bdc4f7b056a978f9ae37b12bcf7 X-Git-Newrev: bd7a059057714d60f0b7a3db37152ae898e4a293 Message-Id: <20240422051334.DDC75384AB4A@sourceware.org> Date: Mon, 22 Apr 2024 05:13:34 +0000 (GMT) List-Id: https://gcc.gnu.org/g:bd7a059057714d60f0b7a3db37152ae898e4a293 commit bd7a059057714d60f0b7a3db37152ae898e4a293 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" } */