From patchwork Thu Jul 11 13:21:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 1959361 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=JrN8gSrv; 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 4WKb4d62BBz1xqr for ; Thu, 11 Jul 2024 23:22:41 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D471C383E52A for ; Thu, 11 Jul 2024 13:22:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id E1E5B3870C26 for ; Thu, 11 Jul 2024 13:22:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E1E5B3870C26 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 E1E5B3870C26 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::629 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720704129; cv=none; b=RX7MQ+1mw6B8PMDkVw4DkHRsxMPRRL6ECHlJD8HuLTVzn682IemF/d3alenTLf3WrePubCIOA8iF09zJaxMaVlzMLH74p5Q5t3FwgsugF82CCtCoBvkX/QR2VyYeOBFQkxTi1eagrD3uI8SYUO7+zGGWjPet0VwZfzSjfiuc99g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720704129; c=relaxed/simple; bh=vytUE6H8e5jvbF/xdErzwjY534uoCmTGzi6iYbh8oyk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=YvRTYtKv1u2Jq1xPe3fuV//4zezaJixn5dkMLecyd4CrO756/zioYalM3IumNFv1Q/P8sN+zgny3JqNrT477mIs9QOx9+/m7PPc4RjLHqR3VDiURm7qpSTgBxg4OY8ccsK2MvY9w62i7CWrHtBDzY7qPNCqYyNMvBwsXAo4zZKQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1fb1c918860so13999945ad.1 for ; Thu, 11 Jul 2024 06:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1720704126; x=1721308926; darn=gcc.gnu.org; h=mime-version:user-agent:message-id:date:organization:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=PZ918MWhK+vOZfbLSgchweCUFfEPPwXxf+vrRrpRGA8=; b=JrN8gSrvmuHflaW+OE/lRnnuwCkNN+VVyUKNM3i1UnWzEU73TzJXcp7Oykh2YeQ7sD lRrObSxFZKiYn4OUlZnysCOQwnVM4+fDTzaawZAryt4b6FC2DXatkrF823q+zqUyo46D D3P5GsCpbUmCP1MpJKPdQY+ersNBI+5O9L9yEyxfG+DAdo6tzrjbxgBUHWlA73Btz4RF jHw9qxpRaRPiHu9L3YrraW3OIjcpwFkIU+ikRAAtHv+FZVqS8PT+RaIeisw6HzMQjyyE drHmwPcXe7RdgW4cb7e6stehHdyNt2n3ohGss7LttndC+fP8ZI8IoN8o4RV/OZdq8If8 SWew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720704126; x=1721308926; h=mime-version:user-agent:message-id:date:organization:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PZ918MWhK+vOZfbLSgchweCUFfEPPwXxf+vrRrpRGA8=; b=WpnodnFiyzWcnNpzdS6N/kpURJSYqEmLvI4AyPkpkFDGoS27oYCPdv1s/HyVuJkKNA wg2nv/6oqcssDDluKpQPfOWJZKZ0bKlRVtjo5i6ew3X+P/k+huWTrpVPDIvQqZ3DEcU7 J+H2tAihMcDzzgqIoTGyKEubyQWJOclQ8bOyGeov6bIFQ5YdU70MJf9vW3CeQKb6WxpV /Nf4GFe19cZ8SBvXjR7YvpkimMBkGE/3p+BOFyAWx1j+CHXmVQIjXVi9xYao2N+w39gR fjLvTMrOvqyI5vVZKqdStAhSh47B9HDdMGn44DS/rUUZIW/RHBGXA6Lk5lGMf72k/ehW HoXg== X-Gm-Message-State: AOJu0Yxe+07sSNGnVQxp8kBQtqvpQ2amt/ZDjpmU2KUcVbgck3BbvbPI ysD6fXV+i0nYi2FzP3ldjUB2wu1UwfNBLtGp4IliPWeMOp8uwwTXEamTpnf2YEKPsRndxjY3NIr zuA== X-Google-Smtp-Source: AGHT+IEp2F/cwbEWzIabd84mhzEDndliVoPEeHn7OzKXS00K4qMnO9P9jNgAlPkhd3Wr0yYBXk/Nqg== X-Received: by 2002:a17:902:eccd:b0:1fb:a38b:c5b7 with SMTP id d9443c01a7336-1fbdb9c1cb9mr34901655ad.1.1720704125758; Thu, 11 Jul 2024 06:22:05 -0700 (PDT) Received: from free.home ([2804:7f1:218a:d53f:1f12:68c4:3c4:d64a]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fbb6a2bef3sm50303665ad.105.2024.07.11.06.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jul 2024 06:22:05 -0700 (PDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 46BDLsWm1013444 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 11 Jul 2024 10:21:54 -0300 From: Alexandre Oliva To: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org Subject: [PATCH] [libstdc++] [testsuite] require dfprt on some tests Organization: Free thinker, does not speak for AdaCore Date: Thu, 11 Jul 2024 10:21:54 -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.0 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 On a target that doesn't enable decimal float components in libgcc (because the libc doens't define all required FE_* macros), but whose compiler supports _Decimal* types, the effective target requirement dfp passes, but several tests won't link because the runtime support they depend on is missing. State their dfprt requirement. Regstrapped on x86_64-linux-gnu, also tested with gcc-13 targeting aarch64. Ok to install? for libstdc++-v3/ChangeLog * testsuite/decimal/binary-arith.cc: Require dfprt. * testsuite/decimal/comparison.cc: Likewise. * testsuite/decimal/compound-assignment-memfunc.cc: Likewise. * testsuite/decimal/make-decimal.cc: Likewise. * testsuite/decimal/pr54036-1.cc: Likewise. * testsuite/decimal/pr54036-2.cc: Likewise. * testsuite/decimal/pr54036-3.cc: Likewise. * testsuite/decimal/unary-arith.cc: Likewise. --- libstdc++-v3/testsuite/decimal/binary-arith.cc | 2 +- libstdc++-v3/testsuite/decimal/comparison.cc | 2 +- .../decimal/compound-assignment-memfunc.cc | 2 +- .../testsuite/decimal/compound-assignment.cc | 2 +- libstdc++-v3/testsuite/decimal/make-decimal.cc | 2 +- libstdc++-v3/testsuite/decimal/pr54036-1.cc | 2 +- libstdc++-v3/testsuite/decimal/pr54036-2.cc | 2 +- libstdc++-v3/testsuite/decimal/pr54036-3.cc | 2 +- libstdc++-v3/testsuite/decimal/unary-arith.cc | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libstdc++-v3/testsuite/decimal/binary-arith.cc b/libstdc++-v3/testsuite/decimal/binary-arith.cc index c10a8b6466cb0..3eeed7ea97501 100644 --- a/libstdc++-v3/testsuite/decimal/binary-arith.cc +++ b/libstdc++-v3/testsuite/decimal/binary-arith.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-require-effective-target dfp } +// { dg-require-effective-target dfprt } // ISO/IEC TR 24733 3.2.8 Binary arithmetic operators. diff --git a/libstdc++-v3/testsuite/decimal/comparison.cc b/libstdc++-v3/testsuite/decimal/comparison.cc index cf34c8d74badc..424dd8bd26659 100644 --- a/libstdc++-v3/testsuite/decimal/comparison.cc +++ b/libstdc++-v3/testsuite/decimal/comparison.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-require-effective-target dfp } +// { dg-require-effective-target dfprt } // ISO/IEC TR 24733 3.2.9 Comparison operators. diff --git a/libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc b/libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc index 817d4bb10b1e9..d520af9a68d49 100644 --- a/libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc +++ b/libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-require-effective-target dfp } +// { dg-require-effective-target dfprt } // ISO/IEC TR 24733 3.2.2.6 Compound assignment (decimal32). // ISO/IEC TR 24733 3.2.3.6 Compound assignment (decimal64). diff --git a/libstdc++-v3/testsuite/decimal/compound-assignment.cc b/libstdc++-v3/testsuite/decimal/compound-assignment.cc index 2d3e325856988..5aa87e78a739a 100644 --- a/libstdc++-v3/testsuite/decimal/compound-assignment.cc +++ b/libstdc++-v3/testsuite/decimal/compound-assignment.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-require-effective-target dfp } +// { dg-require-effective-target dfprt } // ISO/IEC TR 24733 3.2.2.6 Compound assignment (decimal32). // ISO/IEC TR 24733 3.2.3.6 Compound assignment (decimal64). diff --git a/libstdc++-v3/testsuite/decimal/make-decimal.cc b/libstdc++-v3/testsuite/decimal/make-decimal.cc index aa75ac89d4792..560196cb305e1 100644 --- a/libstdc++-v3/testsuite/decimal/make-decimal.cc +++ b/libstdc++-v3/testsuite/decimal/make-decimal.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-require-effective-target dfp } +// { dg-require-effective-target dfprt } // { dg-options "-Wno-pedantic" } // ISO/IEC TR 24733 3.2.5 Initialization from coefficient and exponent. diff --git a/libstdc++-v3/testsuite/decimal/pr54036-1.cc b/libstdc++-v3/testsuite/decimal/pr54036-1.cc index 508738701ca01..a07e4c351651c 100644 --- a/libstdc++-v3/testsuite/decimal/pr54036-1.cc +++ b/libstdc++-v3/testsuite/decimal/pr54036-1.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-require-effective-target dfp } +// { dg-require-effective-target dfprt } #include #include diff --git a/libstdc++-v3/testsuite/decimal/pr54036-2.cc b/libstdc++-v3/testsuite/decimal/pr54036-2.cc index cb9e8c5932adb..e0a5797a25d49 100644 --- a/libstdc++-v3/testsuite/decimal/pr54036-2.cc +++ b/libstdc++-v3/testsuite/decimal/pr54036-2.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-require-effective-target dfp } +// { dg-require-effective-target dfprt } #include #include diff --git a/libstdc++-v3/testsuite/decimal/pr54036-3.cc b/libstdc++-v3/testsuite/decimal/pr54036-3.cc index f27b48991c85e..75fcb2f27bed0 100644 --- a/libstdc++-v3/testsuite/decimal/pr54036-3.cc +++ b/libstdc++-v3/testsuite/decimal/pr54036-3.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-require-effective-target dfp } +// { dg-require-effective-target dfprt } #include #include diff --git a/libstdc++-v3/testsuite/decimal/unary-arith.cc b/libstdc++-v3/testsuite/decimal/unary-arith.cc index b3352ac3656d4..5f75af1439b87 100644 --- a/libstdc++-v3/testsuite/decimal/unary-arith.cc +++ b/libstdc++-v3/testsuite/decimal/unary-arith.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-require-effective-target dfp } +// { dg-require-effective-target dfprt } // ISO/IEC TR 24733 3.2.7 Unary arithmetic operators.