From patchwork Mon Apr 22 09:31:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 1926093 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=Dyzj10CH; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VNKl96G4Lz1ybF for ; Mon, 22 Apr 2024 19:31:49 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0F9F7384AB54 for ; Mon, 22 Apr 2024 09:31:48 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id 7B7043858D38 for ; Mon, 22 Apr 2024 09:31:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7B7043858D38 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7B7043858D38 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::634 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713778288; cv=none; b=Dqggsrtl2ODp4i3ubA9GS4X2EydddM/vABouxwNwgSHLUjYV/bdHcr7yR5bOgGq3XY/4c3pt1L0WdfUwunZhAT3lMBQJkMtIFZlfie6u8BLf8xy8Yo229DurtsOrgpH7w6HylS1tTego9vvK3oE7Os7kenHuTT+/MUUMaSbtDTI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713778288; c=relaxed/simple; bh=7VC2QfD4QmX68JXSN2i9YdSNHFdgXJ8pjNZU1Jdg3+4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=pGgw+bgXvj+GoxkSd5gHoGBFCGb9vOZFLgH66DPS28C/MmfgpsqUoKbqn9DJfF0r3AGBu+6A0JhAysgLhRs8p5ETR7ZORjbBZPzfarfQncGXZqFBRC5HYewD3jrBZ1v9hw0c0s/MkjrhF6VB66pOWJ2NfwhsNselgifnr4EKdfI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1e3ff14f249so30172615ad.1 for ; Mon, 22 Apr 2024 02:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1713778285; x=1714383085; darn=gcc.gnu.org; h=mime-version:user-agent:message-id:date:organization:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=pjDj0kWyZiQovccmActLx0gD2QAE02lWCndbSp5PJfM=; b=Dyzj10CHB8bqF3ED+p0UrZ1aVmBiJA8hCD9hsbX8GhLG4S+ZsYgmWtWF7wdIRp3cJX PN/eCsWbzDO3aGk6SC+185TzmGxhgsLiIyeCtA771j1up147NF2XlTJySi171nyXCjuX +oDrJcT4N872BLSqlZBsjd0wRqXaRIDFRjhx6sT5dtJviWks1FTneQeRGkp/vbamWSRl jL0jLLzzEPrbWgAKaMFqa4Swe+sez8B2iMykpQ56v+VXcEytLyw2BqUazickQUZp7vGb fhzGb6B7RZvZCktW11BIOGOoDG3zS558xLSZIbKe/C/yt0Gqlwen/7Qd+n/FZ7285WW8 zPzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713778285; x=1714383085; h=mime-version:user-agent:message-id:date:organization:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pjDj0kWyZiQovccmActLx0gD2QAE02lWCndbSp5PJfM=; b=ZHGoTsuA/vzAdfqpEj75lwwCVJKvyRo/LNpnZ7vzjfc3jfLWmfyHOXgr2ebKGrFoqf /mjjry0pulsNUHKUTfuRGHioSkCCuUBE8j6rPxciO+x4xGzQM68yGw+D4EBSCTXsBSKV RRWFr9b8wb4Bb626mxvKnIThGHeCiivF5WHF4b8lQ2mML+KiQ2XdFp0OF6N20amPVsiw Vxi0V91bTKdzkWC6US8+YwMp4I7foq51NNGXyTCo1egQJY3N+7rOgRuTT2fKySdocBGG X4auAlIJmj51LHs2S1JHTIT0qN3uLuaQEH5vFF7+ETHZilqiOUwi6ty4UBTqe0y9hq3x wcHw== X-Gm-Message-State: AOJu0YzYr56OErsTeUb9a9wGqLJK6KeV7XEKsnSRPd3ujLw69Vei/jgd FlFAlIfLghpHc26ieqAtsaq40unxnmZjz8T7voIBVQkrNEuxXC6vD3nn8WnpyZ6GjnCvze+OUUO Gxg== X-Google-Smtp-Source: AGHT+IEE9/b9I9r9P7W/J1jGCOP+CLm1j8JImZ0RvOIMFcOwDot2sJXHDja2SpR0eGuwNldP0LSQAA== X-Received: by 2002:a17:903:41ca:b0:1e0:9964:76f4 with SMTP id u10-20020a17090341ca00b001e0996476f4mr13506876ple.14.1713778285238; Mon, 22 Apr 2024 02:31:25 -0700 (PDT) Received: from free.home ([2804:7f1:218b:5e2:c43b:e0c4:71a:241b]) by smtp.gmail.com with ESMTPSA id t10-20020a170902e84a00b001e5a5ea5287sm7654442plg.208.2024.04.22.02.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 02:31:24 -0700 (PDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 43M9VEWX019700 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 22 Apr 2024 06:31:14 -0300 From: Alexandre Oliva To: gcc-patches@gcc.gnu.org Cc: Rainer Orth , Mike Stump , David Edelsohn , Segher Boessenkool , Kewen Lin Subject: [PATCH] Request check for hw support in ppc run tests with -maltivec/-mvsx Organization: Free thinker, does not speak for AdaCore Date: Mon, 22 Apr 2024 06:31:14 -0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org From: Olivier Hainque Regstrapped on x86_64-linux-gnu and ppc64el-linux-gnu. Also tested with gcc-13 on ppc64-vx7r2 and ppc-vx7r2. Ok to install? for gcc/testsuite/ChangeLog * gcc.target/powerpc/swaps-p8-20.c: Change powerpc_altivec_ok require-effective-target test into vmx_hw. * gcc.target/powerpc/vsx-vector-5.c: Change powerpc_vsx_ok require-effective-target test into vsx_hw. --- gcc/testsuite/gcc.target/powerpc/swaps-p8-20.c | 2 +- gcc/testsuite/gcc.target/powerpc/vsx-vector-5.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-20.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-20.c index 564e8acb1f421..755519bfe847d 100644 --- a/gcc/testsuite/gcc.target/powerpc/swaps-p8-20.c +++ b/gcc/testsuite/gcc.target/powerpc/swaps-p8-20.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-require-effective-target powerpc_altivec_ok } */ +/* { dg-require-effective-target vmx_hw } */ /* { dg-options "-O2 -mdejagnu-cpu=power8 -maltivec" } */ /* The expansion for vector character multiply introduces a vperm operation. diff --git a/gcc/testsuite/gcc.target/powerpc/vsx-vector-5.c b/gcc/testsuite/gcc.target/powerpc/vsx-vector-5.c index dcc88b1f3a4c6..37a324b6f897d 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsx-vector-5.c +++ b/gcc/testsuite/gcc.target/powerpc/vsx-vector-5.c @@ -1,11 +1,8 @@ /* { dg-do run { target lp64 } } */ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-require-effective-target vsx_hw } */ /* { dg-options "-mvsx -O2" } */ -/* This will run, and someday we should add the support to test whether we are - running on VSX hardware. */ - #include #include