From patchwork Mon Feb 5 21:34:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Merrill X-Patchwork-Id: 1895429 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=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=il0ojoV4; 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 4TTKRl61nDz23gM for ; Tue, 6 Feb 2024 08:35:31 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CA0F53857C41 for ; Mon, 5 Feb 2024 21:35:29 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 4BDD33858402 for ; Mon, 5 Feb 2024 21:35:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4BDD33858402 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4BDD33858402 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707168903; cv=none; b=fxffavy77P+TGerx2FmOXt4ZE98VWQwtO78/wZdQrP/GW33+Gj3TxBtwd9ZoEO7aTWosExm+AoJiNVUfnel+n5YEgs8ZObRNHV9nNVkP0hBSgAlL/t+L4K5o+WkZBXSct65tFuc2QsyDBZykIapIu9LVY+6U0AjAYr7whMEE+/U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707168903; c=relaxed/simple; bh=wzVPx1FlHe1tgmy5qxy48Ft/K3zX/1LreKZ9Whh9LzE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=MU7HSZVEKprL2SMu+4UdMTANWTQK6l0j9oMH8YAQtTrZf9gCPvdTeF7VagV0ggH3NUQ9yUcm8dE51XZBsyAVfWVo+DF6E+mFcqo2yppumXV8gNaFREp58tLWlBMoBFwi8VidbGZlJUAMbdxDu1bVVKAOF8jJvWj3fnLziWm/iDI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707168902; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HQHhRULLp62QxSftDURJhiRlilhZvcnc2XTBLYlByC8=; b=il0ojoV4EvCucFWyaQw7WHBEWp30uFkkj+D40WPfWGiNJQFC3H2GaCHqnZn5zJ/ntfsS0z FAICdVCIWtDwcqWOieKAwQEVl0KwAnipGYI/LNkC0ShFzqJWtAkE1SD5Kdl8jeAKcx5T2e YHCJTbiRigqJoA5f7mncNY8eHel3y90= Received: from mail-yb1-f198.google.com (mail-yb1-f198.google.com [209.85.219.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-657-KmtNVXIRNkuhIQZ1nIl_GQ-1; Mon, 05 Feb 2024 16:35:00 -0500 X-MC-Unique: KmtNVXIRNkuhIQZ1nIl_GQ-1 Received: by mail-yb1-f198.google.com with SMTP id 3f1490d57ef6-dc6c47cf679so8556864276.0 for ; Mon, 05 Feb 2024 13:35:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707168900; x=1707773700; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HQHhRULLp62QxSftDURJhiRlilhZvcnc2XTBLYlByC8=; b=PLP9rMrHirg55RLfzqRIM6StN7LaGnvFuVrnS9oRN12o9Zs3Uw2ZqV+Eld2Y8IumwO jqpIHRgWfOhFsPOQLN+9XYpwHMmsTDUNiAH8rzf7qh5s/xvPPztbweI7Lqdag4SDUje1 GUqo1fvmUkGk+D6ra0OAXJL9pgMfOi0fzbxaYghsrqWHwEFev3+/NoXkndZcVmogMEeS Vu1X2aYfSE6Ik7ZK0uqb8rrr42jVzM9AUFDINQ3fDo5/UhAxBwv18nJcMNarggC/bZYn p83BXXSBBVj2e2up7xWoE4vgsvhw74cDovL1mrtFdpXPqUrereR1Zt7a50W3Ou9jne+0 79iQ== X-Gm-Message-State: AOJu0YwZ9/+YW4BCxBYN9W/cDadk/srmQfncZreBgt9ZwWcVeBi2eQ53 hiC8IUhipnlMyOsK+kHeEm5xBHyOo3p81Fij+2tQHtauApx6v7826pKsYdzZPjxUmDFw+SiwmHi 4ifTMR4sFDnTkr28z0tXyKg9sbdoiItsVZtV9ybTTtYy/KYRwZj647+JGh/jv5zu7cfahu9XEuC HRgcoQGkOH4ayk5jju/R6VQOBrLQiZGdxJK/Y= X-Received: by 2002:a25:b10b:0:b0:dbe:9f4a:6bb0 with SMTP id g11-20020a25b10b000000b00dbe9f4a6bb0mr672109ybj.56.1707168900155; Mon, 05 Feb 2024 13:35:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFeFNt4c8JkCoD4G/Gqg7eOabf9syUZg9N2R6ItoOkOkphu0Gq7vRg2AhDkxZD7bG4tEWdKEA== X-Received: by 2002:a25:b10b:0:b0:dbe:9f4a:6bb0 with SMTP id g11-20020a25b10b000000b00dbe9f4a6bb0mr672090ybj.56.1707168899647; Mon, 05 Feb 2024 13:34:59 -0800 (PST) Received: from jason-thinkpadp1gen4i.rmtusma.csb (130-44-146-16.s12558.c3-0.arl-cbr1.sbo-arl.ma.cable.rcncustomer.com. [130.44.146.16]) by smtp.gmail.com with ESMTPSA id v10-20020ae9e30a000000b007832870e803sm314206qkf.68.2024.02.05.13.34.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:34:59 -0800 (PST) From: Jason Merrill To: gcc-patches@gcc.gnu.org Subject: [pushed] c++: -frounding-math test [PR109359] Date: Mon, 5 Feb 2024 16:34:34 -0500 Message-ID: <20240205213458.822987-1-jason@redhat.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- This test was fixed by the patch for PR95226, but that patch had no testcase so let's add this one. PR c++/109359 gcc/testsuite/ChangeLog: * g++.dg/ext/frounding-math1.C: New test. --- gcc/testsuite/g++.dg/ext/frounding-math1.C | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 gcc/testsuite/g++.dg/ext/frounding-math1.C base-commit: c7e8381748f78335e9fef23f363b6a9e4463ce7e diff --git a/gcc/testsuite/g++.dg/ext/frounding-math1.C b/gcc/testsuite/g++.dg/ext/frounding-math1.C new file mode 100644 index 00000000000..ecc46fd6017 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/frounding-math1.C @@ -0,0 +1,8 @@ +// PR c++/109359 +// { dg-additional-options -frounding-math } + +// For a while we were emitting two doubles (4 .long directives) as the value +// of a float array; it should only be two .longs. + +// { dg-final { scan-assembler-times "long" 2 { target x86_64-*-* } } } +float xs[] = {0.001914, 0.630539};