From patchwork Thu Oct 17 10:53:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 1998500 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=g8XIfoyZ; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=sKKQbPxW; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=g8XIfoyZ; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=sKKQbPxW; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4XTl7m6mQzz1xw2 for ; Thu, 17 Oct 2024 21:53:56 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E53F83858401 for ; Thu, 17 Oct 2024 10:53:54 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by sourceware.org (Postfix) with ESMTPS id BDF493858D20 for ; Thu, 17 Oct 2024 10:53:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BDF493858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BDF493858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729162419; cv=none; b=mAsHX8iITizt1QFKGGKfD5DIi8sc9/GuYVQpXYcFuIuXf7ZKEhZ3B3pSNAl/QEgOilWsAEXHBigaRt1hYZ54IwS1INAjKzwYH/ADQX7mYqDx3LiTSxqJp0FDNTUb1xo4eKKes7xdoa2DJ+gmOrey5DzzVGPfhGk7S8EHUo6yZRs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729162419; c=relaxed/simple; bh=tt+MPKWYncBtM1f+EjMbK2UZtg0EyzKisgbxWUwObJQ=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date: From:To:Subject:MIME-Version; b=rwexfDtfga6pJsMTA5blP6HOP2uv7aO2xC5/wPYFvj+keqEvCKicZDx+OIBkVmh2Pz5enwFepB+rr1wVby3UeF8cdndmUDly0OyZ4mCiwm1bUAycxDqNU4/ykJ9aB85kqbMT8/MDq2nelia/XjbXunPZ9qy57VRxrCcmakkXYc8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from murzim.nue2.suse.org (unknown [10.168.4.243]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C00B721CA1 for ; Thu, 17 Oct 2024 10:53:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1729162407; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=OyaRPveCuPqMiB0zQCg6N/HE4Fdv+pJxCd3DoThwH24=; b=g8XIfoyZvZz/pyippd9PYkrB0nHb7ThKmILXQNFcxTE6b+2iM+MPAp8RH1l70Y2R9lEA4v rvLC2qWQvT0UxDvmmGY3LTRIMIU/K6arI4rWa3mEWYk7YLswxISs6j2MpRRz1SRYhIXKVG I1TosAnjJGInmzTLCGU6ZvtULh61y0U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1729162407; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=OyaRPveCuPqMiB0zQCg6N/HE4Fdv+pJxCd3DoThwH24=; b=sKKQbPxWIZ7r0Ty/8J0DpnGrEz6hsm7gwtEdsww7LKHWTtiTmQVs+FdOmoKym0TYzRZYqn SduZRMoYPaM8xeAw== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1729162407; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=OyaRPveCuPqMiB0zQCg6N/HE4Fdv+pJxCd3DoThwH24=; b=g8XIfoyZvZz/pyippd9PYkrB0nHb7ThKmILXQNFcxTE6b+2iM+MPAp8RH1l70Y2R9lEA4v rvLC2qWQvT0UxDvmmGY3LTRIMIU/K6arI4rWa3mEWYk7YLswxISs6j2MpRRz1SRYhIXKVG I1TosAnjJGInmzTLCGU6ZvtULh61y0U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1729162407; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=OyaRPveCuPqMiB0zQCg6N/HE4Fdv+pJxCd3DoThwH24=; b=sKKQbPxWIZ7r0Ty/8J0DpnGrEz6hsm7gwtEdsww7LKHWTtiTmQVs+FdOmoKym0TYzRZYqn SduZRMoYPaM8xeAw== Date: Thu, 17 Oct 2024 12:53:27 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] [1/n] remove gcc.dg/vect special naming in favor of dg-additional-options MIME-Version: 1.0 X-Spamd-Result: default: False [1.49 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MISSING_MID(2.50)[]; NEURAL_SPAM_LONG(2.27)[0.650]; NEURAL_HAM_SHORT(-0.19)[-0.927]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ZERO(0.00)[0]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[] X-Spam-Score: 1.49 X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, MISSING_MID, SPF_HELO_NONE, SPF_PASS, TXREP 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 Message-Id: <20241017105354.E53F83858401@sourceware.org> This kicks off removal of keying options used on testcase names as done in gcc.dg/vect as the appropriate way to do this is using dg-additional-options. Starting with two of the least used ones. This causes the moved tests to be covered by VECT_ADDITIONAL_FLAGS processing. Tested on x86_64-unknown-linux-gnu, pushed. * gcc.dg/vect/vect.exp: Process no-fast-math-* and no-math-errno-* in the main set. * gcc.dg/vect/no-fast-math-vect16.c: Add -fno-fast-math. * gcc.dg/vect/no-math-errno-slp-32.c: Add -fno-math-errno. * gcc.dg/vect/no-math-errno-vect-pow-1.c: Likewise. --- .../gcc.dg/vect/no-fast-math-vect16.c | 2 +- .../gcc.dg/vect/no-math-errno-slp-32.c | 1 + .../gcc.dg/vect/no-math-errno-vect-pow-1.c | 1 + gcc/testsuite/gcc.dg/vect/vect.exp | 20 ++++++------------- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/gcc/testsuite/gcc.dg/vect/no-fast-math-vect16.c b/gcc/testsuite/gcc.dg/vect/no-fast-math-vect16.c index 5f871289337..a3c530683d0 100644 --- a/gcc/testsuite/gcc.dg/vect/no-fast-math-vect16.c +++ b/gcc/testsuite/gcc.dg/vect/no-fast-math-vect16.c @@ -1,5 +1,5 @@ /* Disabling epilogues until we find a better way to deal with scans. */ -/* { dg-additional-options "--param vect-epilogues-nomask=0" } */ +/* { dg-additional-options "-fno-fast-math --param vect-epilogues-nomask=0" } */ /* { dg-require-effective-target vect_float_strict } */ #include diff --git a/gcc/testsuite/gcc.dg/vect/no-math-errno-slp-32.c b/gcc/testsuite/gcc.dg/vect/no-math-errno-slp-32.c index 18064cc3e87..0b16a1395e4 100644 --- a/gcc/testsuite/gcc.dg/vect/no-math-errno-slp-32.c +++ b/gcc/testsuite/gcc.dg/vect/no-math-errno-slp-32.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_double } */ +/* { dg-additional-options "-fno-math-errno" } */ double x[256]; diff --git a/gcc/testsuite/gcc.dg/vect/no-math-errno-vect-pow-1.c b/gcc/testsuite/gcc.dg/vect/no-math-errno-vect-pow-1.c index 8e3989a3283..9794de78f2b 100644 --- a/gcc/testsuite/gcc.dg/vect/no-math-errno-vect-pow-1.c +++ b/gcc/testsuite/gcc.dg/vect/no-math-errno-vect-pow-1.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_double } */ +/* { dg-additional-options "-fno-math-errno" } */ double x[256]; diff --git a/gcc/testsuite/gcc.dg/vect/vect.exp b/gcc/testsuite/gcc.dg/vect/vect.exp index 4566e904eb9..54640d845a8 100644 --- a/gcc/testsuite/gcc.dg/vect/vect.exp +++ b/gcc/testsuite/gcc.dg/vect/vect.exp @@ -100,6 +100,12 @@ foreach flags $VECT_ADDITIONAL_FLAGS { et-dg-runtest dg-runtest [lsort \ [glob -nocomplain $srcdir/$subdir/slp-*.\[cS\]]] \ $flags $DEFAULT_VECTCFLAGS + et-dg-runtest dg-runtest [lsort \ + [glob -nocomplain $srcdir/$subdir/no-fast-math-*.\[cS\]]] \ + $flags $DEFAULT_VECTCFLAGS + et-dg-runtest dg-runtest [lsort \ + [glob -nocomplain $srcdir/$subdir/no-math-errno-*.\[cS\]]] \ + $flags $DEFAULT_VECTCFLAGS et-dg-runtest dg-runtest [lsort \ [glob -nocomplain $srcdir/$subdir/bb-slp*.\[cS\]]] \ $flags $VECT_SLP_CFLAGS @@ -131,20 +137,6 @@ et-dg-runtest dg-runtest [lsort \ [glob -nocomplain $srcdir/$subdir/fast-math-bb-slp-*.\[cS\]]] \ "" $VECT_SLP_CFLAGS -# -fno-fast-math tests -set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS -lappend DEFAULT_VECTCFLAGS "-fno-fast-math" -et-dg-runtest dg-runtest [lsort \ - [glob -nocomplain $srcdir/$subdir/no-fast-math-*.\[cS\]]] \ - "" $DEFAULT_VECTCFLAGS - -# -fno-math-errno tests -set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS -lappend DEFAULT_VECTCFLAGS "-fno-math-errno" -et-dg-runtest dg-runtest [lsort \ - [glob -nocomplain $srcdir/$subdir/no-math-errno-*.\[cS\]]] \ - "" $DEFAULT_VECTCFLAGS - # -fwrapv tests set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS lappend DEFAULT_VECTCFLAGS "-fwrapv"