From patchwork Tue Jan 23 07:13:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 190759 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp166786dyi; Mon, 22 Jan 2024 23:14:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGoYx2vZHr9MSo2ED594kwV8BGx19hO0I9Mp5zRzSdfUatA64UOengvms35wUjMuyfV7UuB X-Received: by 2002:a05:622a:11c8:b0:42a:3996:77b9 with SMTP id n8-20020a05622a11c800b0042a399677b9mr466293qtk.4.1705994093151; Mon, 22 Jan 2024 23:14:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705994093; cv=pass; d=google.com; s=arc-20160816; b=aqzlllNIQTdR3jVXx16pSu/bDJWWgPqqdl0pt+f9nPBp7FlLBskfzjmj0msntyYKSy VkmGYQNCbKLq6M4OeGzgsHh92r7YcjRVNpizZ0zrYbxAb3V0XXOqVUpwQ2QBWs2TzdjO bCtI5eCh3UgTCyM0mQnxA0gcKC1lfK6r4WHPgI1SncJ7upzopsWII9e1h3gfwQWJSdFD bRHtUh3sgrHTPV9a9oGX3lPZ8r7OMoowR0QvxpuaEVtKfzw89Y8SpjdKE0sqp2lc6l7F gzGPKnY7ckZcPN+b5EtQc5Cgd78Ma7DGeKtzTvIZqKZQMbfnTG+z/muVmxwjZj5gnckh uWfQ== 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:user-agent:message-id:date:organization:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=CkDE/hZcl4aFxGyVs5hdYgzV9qssHQUyqUQUgycYipE=; fh=oexAcL1GQ/7KI5o7JIA5z5L7G+umyjSpuUDYjScX5yc=; b=lA+zh8kUsJ+IyUxwCuM85ttB0MhOtBvt/crqd3TDH9TRp5loQjLMh3tZbY/GiH5Zey JI960e7xsQI7GxWIiyqMHa7eUlqXnaam2W6CbAHIeUWTbdA6O3Ql1zXBDWYzvGkssNDB 21+LkE54nZ3KWgdf2KMjKtvtMb7foHmv3bmahDAZvulnbk7+vGt/rJcgS+8X73LVlqme JW80RWr7ClDhBe3rS3cjBD029sbB2GnfTGTUNMJUfRn+K5N3CND7GYBg/qmQk3epqosZ nXSsHfPCwQE2dT3TO5ABVgKu8tigLPOYli+hoivKOzpuHPLI8UjOmn84GJvFXsofvtM1 fpyA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b="ZN6e/xPs"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id v1-20020a05622a144100b0042a2444e319si7374395qtx.474.2024.01.22.23.14.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 23:14:53 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b="ZN6e/xPs"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D441B3858408 for ; Tue, 23 Jan 2024 07:14:52 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by sourceware.org (Postfix) with ESMTPS id 47DE93858D20 for ; Tue, 23 Jan 2024 07:14:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 47DE93858D20 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 47DE93858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705994047; cv=none; b=S7nxz7zgSSs6X8IpTbJBK4TdoWvusAngHGYZrOdzcjtLiMoKBLn0U2p90BGIEWNgcMsmWzdcB5PcuT5Kj37qlfZUQUafr5oh8fBMqZS+MDfvyu1ll3jWpGSe9nCyVntm2wHJVn6QHOm+h6gUwgDJuPidykPkLTUaCRMqSeZ/6w4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705994047; c=relaxed/simple; bh=Y8963NkAkMek42P/HApKfCQ0j01sxoF/NLQ6C6aJoUg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=xY/pWX7aKXzWRBj1qz2NQODCk/TWaDU8qd9ibKSeMlg1whzAEMG24FPOfube/6kFfPIUWPZhXgkUZIGYekLkEOjKUE9Kp0e/+71OMiYMxvd/01Rpn80dtbzbLmVt176cGoKEyEmuLX5rR90UMww40DMEOhTD+pmSbFn9iRDdGS4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1d74045c463so11568755ad.3 for ; Mon, 22 Jan 2024 23:14:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1705994043; x=1706598843; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :organization:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=CkDE/hZcl4aFxGyVs5hdYgzV9qssHQUyqUQUgycYipE=; b=ZN6e/xPsxys7AhWdPumR54N7VCVWJVqS3qgfLArFgq+yhRR/iglwy2GMiZxW73YqZd a1eHDVFSU4Km43uq6Un6gHOZYWfMsXUORouVmhmPQlqvRGOLzPyY8YZlyIUENMl3i0vO 2Ybh2rWHCQbo3DJimg1n11MSYPVke6Hm9WuZslyCIxc2qtVPbLkwz77MCN9AY94xrbeR sjIDSwL0P/Z9NtiEHb3jwhxKHdFQeqXjcm4J86y4YGGjewaAkjTyA9CL5/gpjtvwKNYD jW9D/A8TOO3Pn7si3tr2se+vEmrnI5knF6KLwZxyl3pjeFc0iU+3uRgmLLS6Ggqq3MW3 G6Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705994043; x=1706598843; h=content-transfer-encoding:mime-version:user-agent:message-id:date :organization:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CkDE/hZcl4aFxGyVs5hdYgzV9qssHQUyqUQUgycYipE=; b=KMt0DSdfE4TBH2cf+fZipdUgj1xrNox4AqMov6dnwlymg48p4kemFK4MRXLNLvFoto m9nBH8xur61DttRd8+7gq8Ptbjm1BmGj8YDehf7KS5Mo2slHA6ZlbNvRuhLH5A2fsoS1 vKolV34F6COvQyssot46e51qjQgHBgmobYo7Gxw8qBztGK0ySC04LtMmnBeYWFcRWcac nBobi6dHlfoluOIryj0KLFGryAVpAZNIllZg9ZF9FD+VDyaRPvjh5oEIor4P01gG3ym9 FlYn7kNrk+ZCd52prLxbXDJsRhDiqBBBhIx/u3D7pMT603Lvj5xFO/OBrxBXbZquwdzY W1rA== X-Gm-Message-State: AOJu0Ywzb4RFeNFKRbr/P3I4ECEOTi1PNTaqEc6s3QuNI9WAEH5i+A95 Ka4JVMf6LlkqJjjd+JBUTVDKGoI6SaJ1dsDg9WfHhdvS+Qwvoeu6NtkVFgnMKnFGGQjJCPZNaWs = X-Received: by 2002:a17:903:2782:b0:1d7:6343:e0f3 with SMTP id jw2-20020a170903278200b001d76343e0f3mr1337650plb.113.1705994042957; Mon, 22 Jan 2024 23:14:02 -0800 (PST) Received: from free.home ([2804:7f1:218b:d88:4bd5:3dd7:ea20:12bc]) by smtp.gmail.com with ESMTPSA id 12-20020a170902c24c00b001d770328a05sm384281plg.36.2024.01.22.23.14.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 23:14:02 -0800 (PST) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 40N7DgA5089586 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 23 Jan 2024 04:13:43 -0300 From: Alexandre Oliva To: gcc-patches@gcc.gnu.org Cc: Rainer Orth , Mike Stump Subject: [PATCH] testsuite: no dfp run without dfprt Organization: Free thinker, does not speak for AdaCore Date: Tue, 23 Jan 2024 04:13:42 -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.4 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, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788864462585478533 X-GMAIL-MSGID: 1788864462585478533 newlib-src/libc/include/sys/fenv.h doesn't define the FE_* macros that libgcc expects to enable decimal float support. Only after newlib is configured and built does an overriding header that defines those macros become available in objdir//newlib/targ-include/, but by then, libgcc has already been built without dfp and libbid. This has exposed a number of tests that attempt to link dfp programs without requiring a dfprt effective target. dfp.exp already skips if dfp support is missing altogether, and sets the default to compile rather than run if dfp support is present in the compiler but missing in the runtime libraries. However, some of the dfp tests override the default without requiring dfprt. Drop the overriders where reasonable, and add the explicit requirement elsewhere. Regstrapped on x86_64-linux-gnu; also tested on aarch64-elf with gcc-13, where the problem was observed. Ok to install? for gcc/testsuite/ChangeLog * c-c++-common/dfp/pr36800.c: Drop dg-do overrider. * c-c++-common/dfp/pr39034.c: Likewise. * c-c++-common/dfp/pr39035.c: Likewise. * gcc.dg/dfṕ/bid-non-canonical-d32-1.c: Likewise. * gcc.dg/dfṕ/bid-non-canonical-d32-2.c: Likewise. * gcc.dg/dfṕ/bid-non-canonical-d64-1.c: Likewise. * gcc.dg/dfṕ/bid-non-canonical-d64-2.c: Likewise. * gcc.dg/dfṕ/builtin-tgmath-dfp.c: Likewise. * gcc.dg/dfṕ/c23-float-dfp-4.c: Likewise. * gcc.dg/dfṕ/c23-float-dfp-5.c: Likewise. * gcc.dg/dfṕ/c23-float-dfp-6.c: Likewise. * gcc.dg/dfṕ/c23-float-dfp-7.c: Likewise. * gcc.dg/dfp/pr108068.c: Likewise. * gcc.dg/dfp/pr97439.c: Likewise. * g++.dg/compat/decimal/pass-1_main.C: Require dfprt. * g++.dg/compat/decimal/pass-2_main.C: Likewise. * g++.dg/compat/decimal/pass-3_main.C: Likewise. * g++.dg/compat/decimal/pass-4_main.C: Likewise. * g++.dg/compat/decimal/pass-5_main.C: Likewise. * g++.dg/compat/decimal/pass-6_main.C: Likewise. * g++.dg/compat/decimal/return-1_main.C: Likewise. * g++.dg/compat/decimal/return-2_main.C: Likewise. * g++.dg/compat/decimal/return-3_main.C: Likewise. * g++.dg/compat/decimal/return-4_main.C: Likewise. * g++.dg/compat/decimal/return-5_main.C: Likewise. * g++.dg/compat/decimal/return-6_main.C: Likewise. * g++.dg/eh/dfp-1.C: Likewise. * g++.dg/eh/dfp-2.C: Likewise. * g++.dg/eh/dfp-saves-aarch64.C: Likewise. * gcc.c-torture/execute/pr80692.c: Likewise. * gcc.dg/dfṕ/bid-non-canonical-d128-1.c: Likewise. * gcc.dg/dfṕ/bid-non-canonical-d128-2.c: Likewise. * gcc.dg/dfṕ/bid-non-canonical-d128-3.c: Likewise. * gcc.dg/dfṕ/bid-non-canonical-d128-4.c: Likewise. --- gcc/testsuite/c-c++-common/dfp/pr36800.c | 2 -- gcc/testsuite/c-c++-common/dfp/pr39034.c | 1 - gcc/testsuite/c-c++-common/dfp/pr39035.c | 1 - gcc/testsuite/g++.dg/compat/decimal/pass-1_main.C | 1 + gcc/testsuite/g++.dg/compat/decimal/pass-2_main.C | 1 + gcc/testsuite/g++.dg/compat/decimal/pass-3_main.C | 1 + gcc/testsuite/g++.dg/compat/decimal/pass-4_main.C | 1 + gcc/testsuite/g++.dg/compat/decimal/pass-5_main.C | 1 + gcc/testsuite/g++.dg/compat/decimal/pass-6_main.C | 1 + .../g++.dg/compat/decimal/return-1_main.C | 1 + .../g++.dg/compat/decimal/return-2_main.C | 1 + .../g++.dg/compat/decimal/return-3_main.C | 1 + .../g++.dg/compat/decimal/return-4_main.C | 1 + .../g++.dg/compat/decimal/return-5_main.C | 1 + .../g++.dg/compat/decimal/return-6_main.C | 1 + gcc/testsuite/g++.dg/eh/dfp-1.C | 1 + gcc/testsuite/g++.dg/eh/dfp-2.C | 1 + gcc/testsuite/g++.dg/eh/dfp-saves-aarch64.C | 1 + gcc/testsuite/gcc.c-torture/execute/pr80692.c | 1 + .../gcc.dg/dfp/bid-non-canonical-d128-1.c | 2 +- .../gcc.dg/dfp/bid-non-canonical-d128-2.c | 2 +- .../gcc.dg/dfp/bid-non-canonical-d128-3.c | 2 +- .../gcc.dg/dfp/bid-non-canonical-d128-4.c | 2 +- gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-1.c | 1 - gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-2.c | 1 - gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-1.c | 1 - gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-2.c | 1 - gcc/testsuite/gcc.dg/dfp/builtin-snan-1.c | 1 - gcc/testsuite/gcc.dg/dfp/builtin-tgmath-dfp.c | 1 - gcc/testsuite/gcc.dg/dfp/c23-float-dfp-4.c | 1 - gcc/testsuite/gcc.dg/dfp/c23-float-dfp-5.c | 1 - gcc/testsuite/gcc.dg/dfp/c23-float-dfp-6.c | 1 - gcc/testsuite/gcc.dg/dfp/c23-float-dfp-7.c | 1 - gcc/testsuite/gcc.dg/dfp/pr108068.c | 1 - gcc/testsuite/gcc.dg/dfp/pr97439.c | 1 - 35 files changed, 20 insertions(+), 20 deletions(-) diff --git a/gcc/testsuite/c-c++-common/dfp/pr36800.c b/gcc/testsuite/c-c++-common/dfp/pr36800.c index 76ff28c98155b..3d3465a465e7e 100644 --- a/gcc/testsuite/c-c++-common/dfp/pr36800.c +++ b/gcc/testsuite/c-c++-common/dfp/pr36800.c @@ -1,5 +1,3 @@ -/* { dg-do run } */ - #include #include "dfp-dbg.h" diff --git a/gcc/testsuite/c-c++-common/dfp/pr39034.c b/gcc/testsuite/c-c++-common/dfp/pr39034.c index 2a7eedbdbe20d..d05ccc2b30cab 100644 --- a/gcc/testsuite/c-c++-common/dfp/pr39034.c +++ b/gcc/testsuite/c-c++-common/dfp/pr39034.c @@ -1,4 +1,3 @@ -/* { dg-do run } */ /* { dg-options "-O" } */ /* DFP TR 24732 == WG14 / N1176, N1312 */ diff --git a/gcc/testsuite/c-c++-common/dfp/pr39035.c b/gcc/testsuite/c-c++-common/dfp/pr39035.c index 2c9e8b386ed49..c556985458444 100644 --- a/gcc/testsuite/c-c++-common/dfp/pr39035.c +++ b/gcc/testsuite/c-c++-common/dfp/pr39035.c @@ -1,4 +1,3 @@ -/* { dg-do run } */ /* { dg-options "-O" } */ /* DFP TR 24732 == WG14 / N1176, N1312 */ diff --git a/gcc/testsuite/g++.dg/compat/decimal/pass-1_main.C b/gcc/testsuite/g++.dg/compat/decimal/pass-1_main.C index 963dc3bbfabf5..cb48c491b27e4 100644 --- a/gcc/testsuite/g++.dg/compat/decimal/pass-1_main.C +++ b/gcc/testsuite/g++.dg/compat/decimal/pass-1_main.C @@ -1,4 +1,5 @@ /* { dg-require-effective-target dfp } */ +/* { dg-require-effective-target dfprt } */ /* Test passing decimal scalars by value. */ diff --git a/gcc/testsuite/g++.dg/compat/decimal/pass-2_main.C b/gcc/testsuite/g++.dg/compat/decimal/pass-2_main.C index 533e4b276dc79..5f2a7212c8023 100644 --- a/gcc/testsuite/g++.dg/compat/decimal/pass-2_main.C +++ b/gcc/testsuite/g++.dg/compat/decimal/pass-2_main.C @@ -1,4 +1,5 @@ /* { dg-require-effective-target dfp } */ +/* { dg-require-effective-target dfprt } */ /* Test passing decimal classes by value. */ diff --git a/gcc/testsuite/g++.dg/compat/decimal/pass-3_main.C b/gcc/testsuite/g++.dg/compat/decimal/pass-3_main.C index de09992c2246f..f095173b23af9 100644 --- a/gcc/testsuite/g++.dg/compat/decimal/pass-3_main.C +++ b/gcc/testsuite/g++.dg/compat/decimal/pass-3_main.C @@ -1,4 +1,5 @@ /* { dg-require-effective-target dfp } */ +/* { dg-require-effective-target dfprt } */ /* Test passing decimal scalars and classes by value. */ diff --git a/gcc/testsuite/g++.dg/compat/decimal/pass-4_main.C b/gcc/testsuite/g++.dg/compat/decimal/pass-4_main.C index d5a0a47d478b0..379f38a4061d8 100644 --- a/gcc/testsuite/g++.dg/compat/decimal/pass-4_main.C +++ b/gcc/testsuite/g++.dg/compat/decimal/pass-4_main.C @@ -1,4 +1,5 @@ /* { dg-require-effective-target dfp } */ +/* { dg-require-effective-target dfprt } */ /* Test passing decimal classes and scalars by value. */ diff --git a/gcc/testsuite/g++.dg/compat/decimal/pass-5_main.C b/gcc/testsuite/g++.dg/compat/decimal/pass-5_main.C index 9b25a49c72e89..436d80d05680a 100644 --- a/gcc/testsuite/g++.dg/compat/decimal/pass-5_main.C +++ b/gcc/testsuite/g++.dg/compat/decimal/pass-5_main.C @@ -1,4 +1,5 @@ /* { dg-require-effective-target dfp } */ +/* { dg-require-effective-target dfprt } */ /* Test passing decimal scalars and typedef'd classes by value. */ diff --git a/gcc/testsuite/g++.dg/compat/decimal/pass-6_main.C b/gcc/testsuite/g++.dg/compat/decimal/pass-6_main.C index 1b686a21dd028..444643cfd05d7 100644 --- a/gcc/testsuite/g++.dg/compat/decimal/pass-6_main.C +++ b/gcc/testsuite/g++.dg/compat/decimal/pass-6_main.C @@ -1,4 +1,5 @@ /* { dg-require-effective-target dfp } */ +/* { dg-require-effective-target dfprt } */ /* Test passing typedef'd decimal classes and scalars by value. */ diff --git a/gcc/testsuite/g++.dg/compat/decimal/return-1_main.C b/gcc/testsuite/g++.dg/compat/decimal/return-1_main.C index c663bb01cf3ca..fa8dbefbe9ed5 100644 --- a/gcc/testsuite/g++.dg/compat/decimal/return-1_main.C +++ b/gcc/testsuite/g++.dg/compat/decimal/return-1_main.C @@ -1,4 +1,5 @@ /* { dg-require-effective-target dfp } */ +/* { dg-require-effective-target dfprt } */ /* Test function return values for decimal float scalars. */ diff --git a/gcc/testsuite/g++.dg/compat/decimal/return-2_main.C b/gcc/testsuite/g++.dg/compat/decimal/return-2_main.C index afa27f269dfbc..ab7fb5d7fa55b 100644 --- a/gcc/testsuite/g++.dg/compat/decimal/return-2_main.C +++ b/gcc/testsuite/g++.dg/compat/decimal/return-2_main.C @@ -1,4 +1,5 @@ /* { dg-require-effective-target dfp } */ +/* { dg-require-effective-target dfprt } */ /* Test function return values for decimal classes. */ diff --git a/gcc/testsuite/g++.dg/compat/decimal/return-3_main.C b/gcc/testsuite/g++.dg/compat/decimal/return-3_main.C index 468f3fc0c347b..8ee3d31fb2432 100644 --- a/gcc/testsuite/g++.dg/compat/decimal/return-3_main.C +++ b/gcc/testsuite/g++.dg/compat/decimal/return-3_main.C @@ -1,4 +1,5 @@ /* { dg-require-effective-target dfp } */ +/* { dg-require-effective-target dfprt } */ /* Test function return values for decimal float scalars and classes. */ diff --git a/gcc/testsuite/g++.dg/compat/decimal/return-4_main.C b/gcc/testsuite/g++.dg/compat/decimal/return-4_main.C index 365d8becd5986..a0fe5c72aeb64 100644 --- a/gcc/testsuite/g++.dg/compat/decimal/return-4_main.C +++ b/gcc/testsuite/g++.dg/compat/decimal/return-4_main.C @@ -1,4 +1,5 @@ /* { dg-require-effective-target dfp } */ +/* { dg-require-effective-target dfprt } */ /* Test function return values for decimal float classes and scalars. */ diff --git a/gcc/testsuite/g++.dg/compat/decimal/return-5_main.C b/gcc/testsuite/g++.dg/compat/decimal/return-5_main.C index 2c334832797f2..bea5d9d591c1c 100644 --- a/gcc/testsuite/g++.dg/compat/decimal/return-5_main.C +++ b/gcc/testsuite/g++.dg/compat/decimal/return-5_main.C @@ -1,4 +1,5 @@ /* { dg-require-effective-target dfp } */ +/* { dg-require-effective-target dfprt } */ /* Test function return values for decimal float scalars and typedef'd classes. */ diff --git a/gcc/testsuite/g++.dg/compat/decimal/return-6_main.C b/gcc/testsuite/g++.dg/compat/decimal/return-6_main.C index 94526bdcb8154..4460475424e20 100644 --- a/gcc/testsuite/g++.dg/compat/decimal/return-6_main.C +++ b/gcc/testsuite/g++.dg/compat/decimal/return-6_main.C @@ -1,4 +1,5 @@ /* { dg-require-effective-target dfp } */ +/* { dg-require-effective-target dfprt } */ /* Test function return values for typedef'd decimal float classes and scalars. */ diff --git a/gcc/testsuite/g++.dg/eh/dfp-1.C b/gcc/testsuite/g++.dg/eh/dfp-1.C index b0da13a4cc575..5efd92ccc7886 100644 --- a/gcc/testsuite/g++.dg/eh/dfp-1.C +++ b/gcc/testsuite/g++.dg/eh/dfp-1.C @@ -1,5 +1,6 @@ // { dg-do run } // { dg-require-effective-target dfp } +/* { dg-require-effective-target dfprt } */ extern "C" void abort (); diff --git a/gcc/testsuite/g++.dg/eh/dfp-2.C b/gcc/testsuite/g++.dg/eh/dfp-2.C index aff0e03d1d915..3c65b031b9c91 100644 --- a/gcc/testsuite/g++.dg/eh/dfp-2.C +++ b/gcc/testsuite/g++.dg/eh/dfp-2.C @@ -1,5 +1,6 @@ // { dg-do run } // { dg-require-effective-target dfp } +/* { dg-require-effective-target dfprt } */ extern "C" void abort (); diff --git a/gcc/testsuite/g++.dg/eh/dfp-saves-aarch64.C b/gcc/testsuite/g++.dg/eh/dfp-saves-aarch64.C index 062034105004c..f1fa7c44a31c4 100644 --- a/gcc/testsuite/g++.dg/eh/dfp-saves-aarch64.C +++ b/gcc/testsuite/g++.dg/eh/dfp-saves-aarch64.C @@ -1,5 +1,6 @@ // { dg-do run { target aarch64*-*-* } } // { dg-require-effective-target dfp } +/* { dg-require-effective-target dfprt } */ /* Test unwinding of AArch64 register saves. */ /* We cannot use #include because it defines diff --git a/gcc/testsuite/gcc.c-torture/execute/pr80692.c b/gcc/testsuite/gcc.c-torture/execute/pr80692.c index e653c71c91307..0978703bec2fd 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr80692.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr80692.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target dfp } */ +/* { dg-require-effective-target dfprt } */ int main () { _Decimal64 d64 = -0.DD; diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-1.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-1.c index f2f6d47b038f2..641d418ba5f19 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-1.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-1.c @@ -1,5 +1,5 @@ /* Test non-canonical BID significands: _Decimal128. Bug 91226. */ -/* { dg-do run { target lp64 } } */ +/* { dg-do run { target { lp64 && dfprt } } } */ /* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu23 -O2" } */ diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-2.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-2.c index ba4b9cd96946d..d2eedce86e086 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-2.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-2.c @@ -1,6 +1,6 @@ /* Test non-canonical BID significands: _Decimal128, case where combination field starts 11. Bug 91226. */ -/* { dg-do run { target lp64 } } */ +/* { dg-do run { target { lp64 && dfprt } } } */ /* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu23 -O2" } */ diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-3.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-3.c index a16ecf8c624a1..fce415fcec501 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-3.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-3.c @@ -1,5 +1,5 @@ /* Test non-canonical BID significands: _Decimal128. Bug 91226. */ -/* { dg-do run { target lp64 } } */ +/* { dg-do run { target { lp64 && dfprt } } } */ /* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu23 -O0" } */ diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-4.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-4.c index 1504e07f71405..05ef43d97b5da 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-4.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-4.c @@ -1,6 +1,6 @@ /* Test non-canonical BID significands: _Decimal128, case where combination field starts 11. Bug 91226. */ -/* { dg-do run { target lp64 } } */ +/* { dg-do run { target { lp64 && dfprt } } } */ /* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu23 -O0" } */ diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-1.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-1.c index 593f06b61dd75..b5f45b374b738 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-1.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-1.c @@ -1,5 +1,4 @@ /* Test non-canonical BID significands: _Decimal32. Bug 91226. */ -/* { dg-do run } */ /* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu23 -O2" } */ diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-2.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-2.c index ae2c9268ac331..e2edb57d4a973 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-2.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-2.c @@ -1,5 +1,4 @@ /* Test non-canonical BID significands: _Decimal32. Bug 91226. */ -/* { dg-do run } */ /* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu23 -O0" } */ diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-1.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-1.c index bb0cb1a60501f..d48d83079dc43 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-1.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-1.c @@ -1,5 +1,4 @@ /* Test non-canonical BID significands: _Decimal64. Bug 91226. */ -/* { dg-do run } */ /* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu23 -O2" } */ diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-2.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-2.c index 1375ab56e5861..feda104cc2403 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-2.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-2.c @@ -1,5 +1,4 @@ /* Test non-canonical BID significands: _Decimal64. Bug 91226. */ -/* { dg-do run } */ /* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu23 -O0" } */ diff --git a/gcc/testsuite/gcc.dg/dfp/builtin-snan-1.c b/gcc/testsuite/gcc.dg/dfp/builtin-snan-1.c index 49a32c875463c..759e9e8a74b95 100644 --- a/gcc/testsuite/gcc.dg/dfp/builtin-snan-1.c +++ b/gcc/testsuite/gcc.dg/dfp/builtin-snan-1.c @@ -1,6 +1,5 @@ /* Test __builtin_nansd* functions. Test not requiring runtime exceptions support. */ -/* { dg-do run } */ /* { dg-options "" } */ volatile _Decimal32 d32 = __builtin_nansd32 (""); diff --git a/gcc/testsuite/gcc.dg/dfp/builtin-tgmath-dfp.c b/gcc/testsuite/gcc.dg/dfp/builtin-tgmath-dfp.c index 256a71e68be41..17e424d5bf979 100644 --- a/gcc/testsuite/gcc.dg/dfp/builtin-tgmath-dfp.c +++ b/gcc/testsuite/gcc.dg/dfp/builtin-tgmath-dfp.c @@ -1,5 +1,4 @@ /* Test __builtin_tgmath: valid uses, decimal floating-point types. */ -/* { dg-do run } */ /* { dg-options "" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-4.c b/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-4.c index d7d04bd12d94c..fbd52ce3e7bf3 100644 --- a/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-4.c +++ b/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-4.c @@ -1,5 +1,4 @@ /* Test DEC_INFINITY defined in with DFP support. */ -/* { dg-do run } */ /* { dg-options "-std=c23" } */ #include diff --git a/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-5.c b/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-5.c index 19a5fbbba8a01..926649cbf17f7 100644 --- a/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-5.c +++ b/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-5.c @@ -1,5 +1,4 @@ /* Test DEC_NAN defined in with DFP support. */ -/* { dg-do run } */ /* { dg-options "-std=c23" } */ #include diff --git a/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-6.c b/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-6.c index d00c3905a7b29..d6b93a259ddb4 100644 --- a/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-6.c +++ b/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-6.c @@ -2,7 +2,6 @@ quiet not signaling. (This would only actually fail for a signaling NaN in the hardware DFP case, because the software DFP support in libgcc does not integrate with hardware exceptions.) */ -/* { dg-do run } */ /* { dg-require-effective-target fenv_exceptions } */ /* { dg-options "-std=c23" } */ diff --git a/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-7.c b/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-7.c index bc1cd4b58a3fd..d08d5460c3131 100644 --- a/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-7.c +++ b/gcc/testsuite/gcc.dg/dfp/c23-float-dfp-7.c @@ -1,5 +1,4 @@ /* Test DEC*_SNAN macros defined in with DFP support. */ -/* { dg-do run } */ /* { dg-options "-std=c23" } */ #include diff --git a/gcc/testsuite/gcc.dg/dfp/pr108068.c b/gcc/testsuite/gcc.dg/dfp/pr108068.c index 6cbb0fbe6026a..a8798e9002022 100644 --- a/gcc/testsuite/gcc.dg/dfp/pr108068.c +++ b/gcc/testsuite/gcc.dg/dfp/pr108068.c @@ -1,5 +1,4 @@ /* PR tree-optimization/108068 */ -/* { dg-do run } */ /* { dg-options "-O2" } */ int diff --git a/gcc/testsuite/gcc.dg/dfp/pr97439.c b/gcc/testsuite/gcc.dg/dfp/pr97439.c index 7fcf834043cb0..c651ec22e4314 100644 --- a/gcc/testsuite/gcc.dg/dfp/pr97439.c +++ b/gcc/testsuite/gcc.dg/dfp/pr97439.c @@ -1,4 +1,3 @@ -// { dg-do run } // { dg-options "-O1" } static int