From patchwork Mon Nov 6 10:59:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 161942 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp2575100vqu; Mon, 6 Nov 2023 03:00:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9k9pJTw4uzup5dPozjBCgE5f5lC3KMP0up0R0bI6R57I0HgmIiTNKV0VnI+GAXy6ks0Tu X-Received: by 2002:a05:6214:21ce:b0:65d:56c:5177 with SMTP id d14-20020a05621421ce00b0065d056c5177mr30448282qvh.57.1699268442218; Mon, 06 Nov 2023 03:00:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699268442; cv=pass; d=google.com; s=arc-20160816; b=pCdgur9ey9Dj0/1CbAsXThvk5KPIwtl+Fk6q0hi4vqwr8qtOlCE0VimNv7mrpvV4pd taLlpcsVBqKRqz6J07bYFHbt8jR/y/4LXOAIzAuyjTOxc1DmqxPByMF+XMPWic3ERasS 7I1yLR3GrS7c6ch5rcho3RskBfOHyvaaezm4mOXFNSAxsj4aAyK+zyzqAJSuGTPcQX+N p+dqTR0WF2bSiIuekE1sWuUVJZG0zIcxoMLALVaEyAICqQLlGvbE5HXsvGLvc0lD09YW UIfBQpq4tUX+9opeRp5rgBeQyWP7QAauHtIZSnA7pXRXM7YGDkoCtl5D+7sDwuank0VA QFLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=dp0KHet/YVunemhM4aV4aXn3YORK4IeHJ+BhBFxgMF4=; fh=h98mFSi1RI9GUF1Fjw6Ymd7HVeAdKmNoVDxwAmFcsRg=; b=SwAbT7fSm0s5iTGUcna63dlnarFE8C7MEjQ8rvE5xqZC3HtMLv7clslfnOt+FgKOF8 KJwzpyIIjoRcgPa5xr+lC3TEztaeZwaYBI+1ImyofLyzEjjJcO0pOsRAyfS1gK7i3XNt hlzDkYItiqnGWz/qFeDkmiTYUVHhMSov8Zk0Z8HbzBmhNxSQVYrkGsvNBNjcp4wbKd6z jequUQkNd3JdgUBXn4C5s7D8CH/q5TnZpiw3qhnmQmiGqdM3+UBXKS3bH3lKy/35ZQfM yWT8KL/w4qBihDnIsPNEghhpLGLPoA47jWzFJbCgAdparhh5+OI0rl7WMUkDMStOoYPg WfxA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=GEAmDXDl; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id i12-20020a0cfd2c000000b0066d7d85ca0fsi5486212qvs.493.2023.11.06.03.00.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 03:00:42 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=GEAmDXDl; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 00F0A3858C52 for ; Mon, 6 Nov 2023 11:00:42 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id DDC7A3858D3C for ; Mon, 6 Nov 2023 11:00:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DDC7A3858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none 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 DDC7A3858D3C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699268419; cv=none; b=lMscxVCN9zWDmzdu1303i106lKTpngdgWcqeYvICoGOBrun0Mil+vsSFe6VMyX12qaRAh7osHa7DYafb6qaxQtuz+z+adOz8b+V/ZiOJlXtLU+WyFatxsAhIYBrZmtAAgN/uVmAkVglhy3RpawY2TnUfnqD/46IMgnl98h/hcYY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699268419; c=relaxed/simple; bh=vnJqcO5/LxkFm1MD/z+5DbGCSd2ZINLuYd6Q5hhH0Oo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=VZw1ouyjhe+9kXCTGfeIlQcHZN2DCEZdGRGKLgY+alFqHJXZSLMNoDYMPV1FtL4NaWNJ+lslRSryKzYt51rZWMmYUpFOEyevwoXtL9eJL0j5Vz9YVfrNMkJBfLmcqSFNw2b7WFXh9fXykJUiIjfygl6Yq6Uv7cGOb+cznNuvtFI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4083f61312eso33472015e9.3 for ; Mon, 06 Nov 2023 03:00:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1699268416; x=1699873216; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dp0KHet/YVunemhM4aV4aXn3YORK4IeHJ+BhBFxgMF4=; b=GEAmDXDlq9g6KI8EVu7j9uK8tGiQYYvkWFWtwxaBL4fQYZLX719FOZR18jyvd8M5zx SBwGVgUtpP51zo6RgpT+16LTjtOc2wVHI2BWNOpTWdxh/mlcVm7o01vBYrcCS/+uiHA0 Ma+xwTl2BRg7vGtOvI+/+DIqn61a7Mh5H5WyrT6FGpdXetNjzi0MDy4hSPfq7sm3SFaN R20qxoLijgCOYZv4Dwn9PVyycRTnmd01QDxp8irSGZLWhLRE7x5PjUQaRch1AgSeTIh7 qy2jxual3yrmHq3wryH0iWPF0iQlWlygiV+CGjTYJqC9mjHivnjG6At+fU7INjPRTOec 50Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699268416; x=1699873216; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dp0KHet/YVunemhM4aV4aXn3YORK4IeHJ+BhBFxgMF4=; b=eoOaI52n46o7DI/1+Np0lxy9LCAP7Ky+EZo/YqXBEShe0Lv6xZ4pLe9dt1zif/otz/ j2ZFM5QubaG8ZLQvEKA6e/omskx5y8Rb4dfBO3KDIUk++ZELstBWsZb7UzpFwoaRDKju UYE4u2q9DZm3Q7t4TtGJyG12VB5/qn5cFh/s1GYO595GfOxQcQ7WhhWAe9huHn6sU1ul tqlDApf6cm9dK1j9kGAaqjGTlxb1oz+U+cE7mxCx1LgWMgO5vdYUeSkUar21QXPtlSUW g1fN5z6vuBSjD1jj3RUin/jrRUH3jpLaGx/kZ0bMHyXD5yk9Pzlm1H/UYIg0Lg5AD9if v5jw== X-Gm-Message-State: AOJu0YwG+j43EFkji8JNbB3EdYB+Z2v3wMToghps1LxCs5OlCCgXr/ME kKVSsPtTvQOwtjnb8yAfR5IlH0mp5pxyerDP2CpddA== X-Received: by 2002:a05:600c:1d18:b0:408:4475:8cc1 with SMTP id l24-20020a05600c1d1800b0040844758cc1mr24823522wms.35.1699268416021; Mon, 06 Nov 2023 03:00:16 -0800 (PST) Received: from poulhies-Precision-5550.lan ([2001:861:3382:1a90:abca:bb6b:751b:a141]) by smtp.gmail.com with ESMTPSA id q8-20020a05600c46c800b0040776008abdsm11806987wmo.40.2023.11.06.03.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 03:00:15 -0800 (PST) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: =?utf-8?q?Marc_Poulhi=C3=A8s?= Subject: [PATCH] testsuite: require avx_runtime for some tests Date: Mon, 6 Nov 2023 11:59:18 +0100 Message-ID: <20231106110013.3862412-1-poulhies@adacore.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781812106033950973 X-GMAIL-MSGID: 1781812106033950973 These 3 tests fails parsing the 'vect' dump when not using -mavx. Make the dependency explicit. gcc/testsuite/ChangeLog: * gcc.dg/vect/vect-ifcvt-18.c: Add dep on avx_runtime. * gcc.dg/vect/vect-simd-clone-16f.c: Likewise. * gcc.dg/vect/vect-simd-clone-18f.c: Likewise. --- Tested on x86_64-linux and x86_64-elf. Ok for master? gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c | 3 ++- gcc/testsuite/gcc.dg/vect/vect-simd-clone-16f.c | 4 ++-- gcc/testsuite/gcc.dg/vect/vect-simd-clone-18f.c | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c b/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c index c1d3c27d819..607194496e9 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c +++ b/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c @@ -1,6 +1,7 @@ /* { dg-require-effective-target vect_condition } */ /* { dg-require-effective-target vect_float } */ -/* { dg-additional-options "-Ofast -mavx" { target avx_runtime } } */ +/* { dg-require-effective-target avx_runtime } */ +/* { dg-additional-options "-Ofast -mavx" } */ int A0[4] = {36,39,42,45}; diff --git a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-16f.c b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-16f.c index 7cd29e894d0..c6615dc626d 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-16f.c +++ b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-16f.c @@ -1,6 +1,6 @@ /* { dg-require-effective-target vect_simd_clones } */ -/* { dg-additional-options "-fopenmp-simd --param vect-epilogues-nomask=0" } */ -/* { dg-additional-options "-mavx" { target avx_runtime } } */ +/* { dg-additional-options "-fopenmp-simd --param vect-epilogues-nomask=0 -mavx" } */ +/* { dg-require-effective-target avx_runtime } */ /* { dg-additional-options "-mno-avx512f" { target { { i?86*-*-* x86_64-*-* } && { ! lp64 } } } } */ #define TYPE __INT64_TYPE__ diff --git a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-18f.c b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-18f.c index 4dd51381d73..787b918d0c4 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-18f.c +++ b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-18f.c @@ -1,6 +1,6 @@ /* { dg-require-effective-target vect_simd_clones } */ -/* { dg-additional-options "-fopenmp-simd --param vect-epilogues-nomask=0" } */ -/* { dg-additional-options "-mavx" { target avx_runtime } } */ +/* { dg-additional-options "-fopenmp-simd --param vect-epilogues-nomask=0 -mavx" } */ +/* { dg-require-effective-target avx_runtime } */ /* { dg-additional-options "-mno-avx512f" { target { { i?86*-*-* x86_64-*-* } && { ! lp64 } } } } */ #define TYPE __INT64_TYPE__