From patchwork Fri Oct 18 11:42:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 1999081 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=wPu/qyo6; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=jsMMmwAy; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=wPu/qyo6; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=jsMMmwAy; 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 4XVNBH469Gz1xvV for ; Fri, 18 Oct 2024 22:43:19 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BB8EF3858288 for ; Fri, 18 Oct 2024 11:43:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) by sourceware.org (Postfix) with ESMTPS id 847863858430 for ; Fri, 18 Oct 2024 11:42:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 847863858430 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 847863858430 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:2 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729251772; cv=none; b=FPqy4Q2UAG/o9BLOL/8d3df/O8S/jSTIZNhd082OfmvdH6FfHcDxRJaxmePtRgimXT0BmqSQm+5b7Tn7/ufx2iYN6ttQJl7v2OFAsJyaqeRMmcJQJNYfWx3ZMQpJNKlVKycSyNiO/GHHvL2o/tuQEpzv/YclOW9fuzBtkkqmlnc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729251772; c=relaxed/simple; bh=s4f6syp0Ub9mLMGmZ7x424/4AvL+QiQuoGhgtoW4s5A=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date: From:To:Subject:MIME-Version:Message-Id; b=rhLMAHLervAGv4KeF0faMtzsuan/+ib1U4fWU10rQJ0hRJZCu3Lfvg86f/UPNNdGpoajrhNWDHVmtcZveMFbWlRMlCquVvS8VESpfdiVoKrd3SinCTOJTTvDaxYxarDUUuXJ9gGVqbt5SbgZNwY3i5ezN30vecDobC+LfqSQssw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (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-out2.suse.de (Postfix) with ESMTPS id 7ABEC1F7A5 for ; Fri, 18 Oct 2024 11:42:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1729251765; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=yK225qJzrJbH1E4ItOgSBsDd1FRBxecGx8is0vEIa4M=; b=wPu/qyo6wBxQrwhPe6gwlaR57/uxRySMtEc1mDjrJiXnIAtwrCTxx34eWrSnQCP26y1CPz EmfgiFrszUJ8K8UUMcVQ+v0AyWYadk71o1R+w2mdwvFLu0TM6liqtZ4p7qbdcTPOXY8Rua DdCq2H/HHvMUOzC5BT22s0L65At7eyM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1729251765; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=yK225qJzrJbH1E4ItOgSBsDd1FRBxecGx8is0vEIa4M=; b=jsMMmwAy2oyjcZZjgTgwHvL3IBrCMLp9sWSelNjAMYEVC+H5ItZwz7rGZDcGWi7YjE6/Bd 20fLue9u7wnp6vCA== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b="wPu/qyo6"; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=jsMMmwAy DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1729251765; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=yK225qJzrJbH1E4ItOgSBsDd1FRBxecGx8is0vEIa4M=; b=wPu/qyo6wBxQrwhPe6gwlaR57/uxRySMtEc1mDjrJiXnIAtwrCTxx34eWrSnQCP26y1CPz EmfgiFrszUJ8K8UUMcVQ+v0AyWYadk71o1R+w2mdwvFLu0TM6liqtZ4p7qbdcTPOXY8Rua DdCq2H/HHvMUOzC5BT22s0L65At7eyM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1729251765; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=yK225qJzrJbH1E4ItOgSBsDd1FRBxecGx8is0vEIa4M=; b=jsMMmwAy2oyjcZZjgTgwHvL3IBrCMLp9sWSelNjAMYEVC+H5ItZwz7rGZDcGWi7YjE6/Bd 20fLue9u7wnp6vCA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (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 imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 6006C13680 for ; Fri, 18 Oct 2024 11:42:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id dgPHFbVJEmcVBQAAD6G6ig (envelope-from ) for ; Fri, 18 Oct 2024 11:42:45 +0000 Date: Fri, 18 Oct 2024 13:42:36 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] [3/n] remove fast-math-*.c special-casing of gcc.dg/vect/ files MIME-Version: 1.0 Message-Id: <20241018114245.6006C13680@imap1.dmz-prg2.suse.org> X-Rspamd-Queue-Id: 7ABEC1F7A5 X-Spam-Level: X-Spamd-Result: default: False [-4.51 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:25478, ipnet:::/0, country:RU]; FUZZY_BLOCKED(0.00)[rspamd.com]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,imap1.dmz-prg2.suse.org:mid,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gcc-patches@gcc.gnu.org]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Action: no action X-Spam-Score: -4.51 X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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 The following makes -ffast-math explicit. * gcc.dg/vect/vect.exp: Remove special-casing of tests named fast-math-* * gcc.dg/vect/fast-math-bb-slp-call-1.c: Add dg-additional-options -ffast-math. * gcc.dg/vect/fast-math-bb-slp-call-2.c: Likewise. * gcc.dg/vect/fast-math-bb-slp-call-3.c: Likewise. * gcc.dg/vect/fast-math-ifcvt-1.c: Likewise. * gcc.dg/vect/fast-math-pr35982.c: Likewise. * gcc.dg/vect/fast-math-pr43074.c: Likewise. * gcc.dg/vect/fast-math-pr44152.c: Likewise. * gcc.dg/vect/fast-math-pr55281.c: Likewise. * gcc.dg/vect/fast-math-slp-27.c: Likewise. * gcc.dg/vect/fast-math-slp-38.c: Likewise. * gcc.dg/vect/fast-math-vect-call-1.c: Likewise. * gcc.dg/vect/fast-math-vect-call-2.c: Likewise. * gcc.dg/vect/fast-math-vect-complex-3.c: Likewise. * gcc.dg/vect/fast-math-vect-outer-7.c: Likewise. * gcc.dg/vect/fast-math-vect-pow-1.c: Likewise. * gcc.dg/vect/fast-math-vect-pow-2.c: Likewise. * gcc.dg/vect/fast-math-vect-pr25911.c: Likewise. * gcc.dg/vect/fast-math-vect-pr29925.c: Likewise. * gcc.dg/vect/fast-math-vect-reduc-5.c: Likewise. * gcc.dg/vect/fast-math-vect-reduc-7.c: Likewise. * gcc.dg/vect/fast-math-vect-reduc-8.c: Likewise. * gcc.dg/vect/fast-math-vect-reduc-9.c: Likewise. --- gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-1.c | 2 ++ gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-2.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c | 2 ++ gcc/testsuite/gcc.dg/vect/fast-math-ifcvt-1.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-pr35982.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-pr43074.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-pr44152.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-pr55281.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-slp-27.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-call-1.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-call-2.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-complex-3.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-outer-7.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-1.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-2.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-pr25911.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-pr29925.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-5.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-9.c | 1 + gcc/testsuite/gcc.dg/vect/vect.exp | 10 +++------- 23 files changed, 27 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-1.c b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-1.c index d9f19d90431..a10e8d677a6 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-1.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-ffast-math" } */ + #include "tree-vect.h" extern float copysignf (float, float); diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-2.c b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-2.c index 76bb044914f..234b31b6e44 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-2.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-2.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target vect_double } */ +/* { dg-additional-options "-ffast-math" } */ #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c index fd2c8be695a..a57de47f77c 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-ffast-math" } */ + #include "tree-vect.h" extern double sqrt (double); diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-ifcvt-1.c b/gcc/testsuite/gcc.dg/vect/fast-math-ifcvt-1.c index f51202e0855..a8d94440cd9 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-ifcvt-1.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-ifcvt-1.c @@ -1,5 +1,6 @@ /* PR 47892 */ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_condition } */ diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-pr35982.c b/gcc/testsuite/gcc.dg/vect/fast-math-pr35982.c index 50ea7ffc1b9..dc1a174b6e7 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-pr35982.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-pr35982.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_intfloat_cvt } */ diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-pr43074.c b/gcc/testsuite/gcc.dg/vect/fast-math-pr43074.c index b3e9884e9eb..88298067304 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-pr43074.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-pr43074.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ float pvslockprocess(float *fout, float *fin, int framesize) diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-pr44152.c b/gcc/testsuite/gcc.dg/vect/fast-math-pr44152.c index 4dd3b6f8463..482dab7a04a 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-pr44152.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-pr44152.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ #include diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-pr55281.c b/gcc/testsuite/gcc.dg/vect/fast-math-pr55281.c index 49232616b45..68f6437586f 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-pr55281.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-pr55281.c @@ -1,5 +1,6 @@ /* PR tree-optimization/55281 */ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ static inline float bar (float k, float j) diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-slp-27.c b/gcc/testsuite/gcc.dg/vect/fast-math-slp-27.c index 3597b3acef8..863fe15bee0 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-slp-27.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-slp-27.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ float x[2*256+1]; diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c b/gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c index 96751faae7f..65ad9a78371 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_double } */ double self[1024]; diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-1.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-1.c index 6c9b7c37b6e..9d437f8b3c2 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-1.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-ffast-math" } */ /* Disabling epilogues until we find a better way to deal with scans. */ /* { dg-additional-options "--param vect-epilogues-nomask=0" } */ #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-2.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-2.c index e52ffe435d3..c2aabc6357f 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-2.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-2.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target vect_double } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-additional-options "--param vect-epilogues-nomask=0" } */ #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-complex-3.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-complex-3.c index 07992cf72dc..1a11a8855d2 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-complex-3.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-complex-3.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ #include diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-outer-7.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-outer-7.c index 50ce3547eed..13ff69dec9f 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-outer-7.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-outer-7.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ float dvec[256]; diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-1.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-1.c index 6da61daa812..42de1e094bf 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-1.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-1.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ float x[256]; diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-2.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-2.c index fdcc4a50cdb..3ae3b49f61a 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-2.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-2.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ typedef double d_type; struct diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr25911.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr25911.c index e1d0d4571fb..0c33baec594 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr25911.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr25911.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ float bessel_Kn_scaled_small_x(int n) { diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr29925.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr29925.c index 9c58a485471..e6e5a58fd02 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr29925.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr29925.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ #include diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-5.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-5.c index 663976b5707..11ca08913a0 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-5.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-5.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ /* need -funsafe-math-optimizations to vectorize the summation. diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c index 15e7248ea81..0a9feab8cea 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_double } */ /* need -funsafe-math-optimizations to vectorize the summation. diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c index 840d07cb8ca..f1ed34c3cd2 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-9.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-9.c index 0e9440caa9c..22c5336a182 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-9.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-9.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/vect.exp b/gcc/testsuite/gcc.dg/vect/vect.exp index 555e0ace1a5..eddebf53c7f 100644 --- a/gcc/testsuite/gcc.dg/vect/vect.exp +++ b/gcc/testsuite/gcc.dg/vect/vect.exp @@ -109,6 +109,9 @@ foreach flags $VECT_ADDITIONAL_FLAGS { et-dg-runtest dg-runtest [lsort \ [glob -nocomplain $srcdir/$subdir/no-vfa-*.\[cS\]]] \ $flags $DEFAULT_VECTCFLAGS + et-dg-runtest dg-runtest [lsort \ + [glob -nocomplain $srcdir/$subdir/fast-math-\[ipsvc\]*.\[cS\]]] \ + $flags $DEFAULT_VECTCFLAGS et-dg-runtest dg-runtest [lsort \ [glob -nocomplain $srcdir/$subdir/bb-slp*.\[cS\]]] \ $flags $VECT_SLP_CFLAGS @@ -119,13 +122,6 @@ global SAVED_DEFAULT_VECTCFLAGS set SAVED_DEFAULT_VECTCFLAGS $DEFAULT_VECTCFLAGS set SAVED_VECT_SLP_CFLAGS $VECT_SLP_CFLAGS -# -ffast-math tests -set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS -lappend DEFAULT_VECTCFLAGS "-ffast-math" -et-dg-runtest dg-runtest [lsort \ - [glob -nocomplain $srcdir/$subdir/fast-math-\[ipsvc\]*.\[cS\]]] \ - "" $DEFAULT_VECTCFLAGS - # -ffast-math SLP tests set VECT_SLP_CFLAGS $SAVED_VECT_SLP_CFLAGS lappend VECT_SLP_CFLAGS "-ffast-math"