From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 838E93858291; Thu, 6 Apr 2023 06:34:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 838E93858291 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680762887; bh=aZGq6IfioPncN6w/EoG70xZUQhcGyeHDa6gXMqnfuYM=; h=From:To:Subject:Date:From; b=u+uVfU6SvqTxCg49xZdOSzXlp/ctrGfLXtPUbODPRSEk6zaRCDApXRS53D0tYYr16 94+wW9hrQ0pJb0f14OMO8xUOm3AAn3xG+5mxkMNaf8H9+2egRDwimmL2gWGAMY9L1g wCsRdcDtX52aWNCrl++T71jAlHIGqWlrHOEJe0dk= 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: 8eca9315a684c4e35d8dce513f9afa60db30ff62 X-Git-Newrev: 99b2d7784b58a2ef3f58faa0c3f38ff53726da0d Message-Id: <20230406063447.838E93858291@sourceware.org> Date: Thu, 6 Apr 2023 06:34:47 +0000 (GMT) List-Id: https://gcc.gnu.org/g:99b2d7784b58a2ef3f58faa0c3f38ff53726da0d commit 99b2d7784b58a2ef3f58faa0c3f38ff53726da0d Author: Alexandre Oliva Date: Wed Apr 5 11:26:58 2023 -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" } */