From patchwork Wed Oct 4 17:08:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 148465 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:254a:b0:403:3b70:6f57 with SMTP id hf10csp337836vqb; Wed, 4 Oct 2023 11:51:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFoukedg5X2onzgo7xIppvsHSfb2khC8GX+RTiypSiHuv73+6B/KlTH8EtAuqa0Tf2lgp3D X-Received: by 2002:a05:6402:890:b0:531:140f:335b with SMTP id e16-20020a056402089000b00531140f335bmr2922625edy.31.1696445460645; Wed, 04 Oct 2023 11:51:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696445460; cv=pass; d=google.com; s=arc-20160816; b=eGA11GmB7lInQXNpdnIG957S+vd9QV4HnjHWBTIJ0Ez+I0UE2JV9K4Jyjj7AdgCKAu MLoWDj0YzCZ5NXC/1Lup7TmHk114jV0eTPkfl/iujgVQrLlBJ1LzajC6j4hQAY5zQlRe 2/0F52L9X9s7nyPmC2xXbQXyyw91lEqfg0h6KyjLhhyteg+HORbzW0bn6+bY1yCsXnkS +OlSMsF30rCsR9NvbHu7+N+vL2f1JgoDcn13t0pdxgf+htYd5tQC+MshOZn6++qy+tBP b3NdN+L0rq16k8Af3C1hBVd89Rm2Hz6UHb8noYAv5FqWZ/eLtzpC6zOZht2PiFTmlpBJ ocYQ== 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:date:message-id:references :content-transfer-encoding:mime-version:subject:in-reply-to:cc:to :from:dkim-signature:dmarc-filter:delivered-to; bh=9oxyiGvx9opLmc4UT55hTvS/uTZKZw1M9F31viuQKKA=; fh=AKfNtHGieTaUQwRqhtuKEF5if3WVqTGfwxCWwW3MSPg=; b=iLqka5rjaw9rTqDj6Dt9tw/Ip5y2sS98RmkWlDf4Y2WtfvS8U3AFqfH4IDH9dXB6BQ YXPmLKXEnfEXVzaRakbngurXG3vbd8oLCSPX4Cc5XYszfThwSIoVA+Rs7Bfr05Kua9Pk U+hLXQZHRT8lHnnPBzbfYrpJluX2LS51fQ7pokPqJDz1TG+NlmzOgzNS315jn6pj/kgx CGKwJ8ncnGf1YL2+j6Gy6c1zZH98HUWd5plFZSy9xhngD+FwkV9YiOJi9yThSdOuIMDh 1lgcO/u1EYupgETZ0tDSNfEh/QF1fLL8IhhUKlNYkqU3mD3eny6QmLoUzeBeyvaFYj1L ofsQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b=pUD3Fvpz; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id q21-20020aa7da95000000b005305bc899basi156139eds.229.2023.10.04.11.51.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 11:51:00 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b=pUD3Fvpz; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 82CFA389942C for ; Wed, 4 Oct 2023 17:09:15 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2074.outbound.protection.outlook.com [40.107.8.74]) by sourceware.org (Postfix) with ESMTPS id 33C8A3858C5F; Wed, 4 Oct 2023 17:08:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 33C8A3858C5F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=axis.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g0G31Kp7Oe8Vh4cGp5tgd++234ZkOl9fVjijNIkzPMKuPqfryfVTqnlSkBKryfVYMvACOCQ9uTIlOaA4Cgy39yB84VnJUSqww7s+g1DnGwDk8TxD9qxzvq8N0OJbCVy6ZihnqtKbvmnAhNcdDMTZ2VW2cDYKAuLnugVmlcdvU4R8iDDJJHmHdanByYReC66ZAwz3G1D90S8exsx2yfgsbjqU2sdNZb7AJkayeY5FKtHHZVWj+NLA4faXv4chbFrqpd1RgvIkhie+P7sJCb7OjubPIGyVlAzoslLNbUfaFXPkyTPZ3ChJBwl2iAUIe6hz3oHbASwjESNYNZpRuvJRcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9oxyiGvx9opLmc4UT55hTvS/uTZKZw1M9F31viuQKKA=; b=fMb7uFFQRyJqFLvH5Gpez99waMefjn704501KOvsyl5ybps9ePjaPssn7bh7LpFOtZIpiqEHgSxD3AxxOzbTaMb5dp77oQe/w5QiFW+dQ6Q34pvdG1udc1Vxz6oLnWVfobINLVMyMn2gYldeoA/3FJc8E0H6iNSn/qzc8rl55ZDxYtVoz6rlksiISzD+sikaoI6j6LuP2QWNRvSShCmW3zfYxxWWXTj6dkq96qmsZkI8UMNErJckpxWYA4WjlWCq5y52XwKqpGi2tjizxSDwg06Pg3A2knh08x1cmTtYJC+/3SklowVDDAsQh8H0DTO+ny16I/K0KRKMb6O20eRejQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 195.60.68.100) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=axis.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9oxyiGvx9opLmc4UT55hTvS/uTZKZw1M9F31viuQKKA=; b=pUD3FvpzwlE+ahmC7yNQYashUfyrV+QjUjpxkYqcBQVVETFs/Sg6UWBdrSaoehPFfDDSsbzJIP0KOpdzek6mittSp5N/y/llHc71KapAoMrSyhD2aOAFm/Cfu75Cj5lEiLZcsqsrHi5QMUYnrit0KdiwpwEt1Tt+wl3uz/kOVgM= Received: from AM7PR04CA0017.eurprd04.prod.outlook.com (2603:10a6:20b:110::27) by DU0PR02MB9194.eurprd02.prod.outlook.com (2603:10a6:10:466::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.33; Wed, 4 Oct 2023 17:08:17 +0000 Received: from AM3PEPF0000A78E.eurprd04.prod.outlook.com (2603:10a6:20b:110:cafe::3b) by AM7PR04CA0017.outlook.office365.com (2603:10a6:20b:110::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.26 via Frontend Transport; Wed, 4 Oct 2023 17:08:17 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=axis.com; Received-SPF: Fail (protection.outlook.com: domain of axis.com does not designate 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; Received: from mail.axis.com (195.60.68.100) by AM3PEPF0000A78E.mail.protection.outlook.com (10.167.16.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.14 via Frontend Transport; Wed, 4 Oct 2023 17:08:17 +0000 Received: from se-mail01w.axis.com (10.20.40.7) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 4 Oct 2023 19:08:16 +0200 Received: from se-intmail02x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Wed, 4 Oct 2023 19:08:16 +0200 Received: from pchp3.se.axis.com (pchp3.se.axis.com [10.88.21.53]) by se-intmail02x.se.axis.com (Postfix) with ESMTP id D0C4122E2; Wed, 4 Oct 2023 19:08:16 +0200 (CEST) Received: by pchp3.se.axis.com (Postfix, from userid 171) id CAD8D20424; Wed, 4 Oct 2023 19:08:16 +0200 (CEST) From: Hans-Peter Nilsson To: , CC: , In-Reply-To: <20231004151528.2ADB12043D@pchp3.se.axis.com> (message from Hans-Peter Nilsson on Wed, 4 Oct 2023 17:15:28 +0200) Subject: [PATCH v2 2/2] testsuite: Replace many dg-require-thread-fence with dg-require-atomic-cmpxchg-word MIME-Version: 1.0 References: <20230926143439.B589920431@pchp3.se.axis.com> <20231004031136.8B8BA2042A@pchp3.se.axis.com> <20231004151528.2ADB12043D@pchp3.se.axis.com> Message-ID: <20231004170816.CAD8D20424@pchp3.se.axis.com> Date: Wed, 4 Oct 2023 19:08:16 +0200 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM3PEPF0000A78E:EE_|DU0PR02MB9194:EE_ X-MS-Office365-Filtering-Correlation-Id: ed096f11-400c-44bf-06f1-08dbc4fc80a8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gcSTf3idPqIzCWDRYwIZ0T9fFv0LHQ50pPbzIFWzM33xyZu+8Uj6dETXBKw/ljvpX162SVgxbwwCPT5xBctyjuTBj9UuN+AfJ6eai/o56AvnUf1rcS1KcDeBXsRbZU+wzetnYK6q+wM5zzK3HjAzCJLI1LqMXviM39Ncn+2bACfs+YcZTgUVVXT0PHHencGkaq23UkLUJsedOWkowDVzLkbDMV2j3MuYPyYOOhJqA1SiONailhyXwM1Q7X7oKrnZrBm6Ah8LU43l0fZ30LemaamggoGqZfihABb0O+fsYoABO0q1/ongDHjKeZV/x8eKs0UDiGLjvM+1Yw6eJi0qucagVVjlnnhfeDV6RpsKv83HE7v7FfDdwIsi9qb+I38RTRtJ83pBnDqmgDrTbzC6PGOwhe3qdfmeFU5G5NKUHjdujbf1IA2hV8axRuI1RkkDkFjSsrEKJQqrUTGihJbX03b11Qb0RoJKvMkLtqQMiKsFauv1SAMxOdsFmNiaC3GPIHbTA/m+c9dbjvae4RWfOmhTneO8KESO7E/CLA0vUDFT+p3Ppv5MJgrosZVP/0sK+kL8r2G732b4xqmzPud4zdB93KONH1qaTk4fFKmJ5U/rBhluWIhRq2hKF1IMWOhm3xWzopGoq4dkSp7YfDO5KcN85QEgJrHm0HEaYeOH+7JQxXDiPGnicykUf/z8Iv7RWTljirO7FhBv19jHUC+30V/I2b44k6bgCGgVwAWcQYE7ppJHD603B4U2UaQHDVOe6kHJL6hTVeDxWU2f0WcK11FTGgllySJICeCYgVVqvTw= X-Forefront-Antispam-Report: CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(396003)(136003)(346002)(39860400002)(376002)(230922051799003)(64100799003)(82310400011)(186009)(451199024)(1800799009)(46966006)(40470700004)(36840700001)(110136005)(54906003)(70206006)(40480700001)(70586007)(316002)(36860700001)(42186006)(1076003)(41300700001)(40460700003)(426003)(336012)(2906002)(6266002)(83380400001)(33656002)(26005)(5660300002)(4326008)(8936002)(8676002)(81166007)(82740400003)(356005)(478600001)(47076005)(2004002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 17:08:17.2042 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ed096f11-400c-44bf-06f1-08dbc4fc80a8 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100]; Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AM3PEPF0000A78E.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR02MB9194 X-Spam-Status: No, score=-11.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, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, URIBL_BLACK 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: 1778851995458003497 X-GMAIL-MSGID: 1778851995458003497 s/atomic-exchange/atomic-cmpxchg-word/g. Tested as v1. Ok to commit? -- >8 -- These tests actually use a form of atomic compare and exchange operation, not just atomic loading and storing. Some targets (not supported by e.g. libatomic) have atomic loading and storing, but not compare and exchange, yielding linker errors for missing library functions. This change is just for existing uses of dg-require-thread-fence. It does not fix any other tests that should also be gated on dg-require-atomic-cmpxchg-word. * testsuite/29_atomics/atomic/compare_exchange_padding.cc, testsuite/29_atomics/atomic_flag/clear/1.cc, testsuite/29_atomics/atomic_flag/cons/value_init.cc, testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc, testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc, testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc, testsuite/29_atomics/atomic_ref/generic.cc, testsuite/29_atomics/atomic_ref/integral.cc, testsuite/29_atomics/atomic_ref/pointer.cc: Replace dg-require-thread-fence with dg-require-atomic-cmpxchg-word. --- .../testsuite/29_atomics/atomic/compare_exchange_padding.cc | 2 +- libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.cc | 2 +- .../testsuite/29_atomics/atomic_flag/cons/value_init.cc | 2 +- .../testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc | 2 +- .../testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc | 2 +- .../testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc | 2 +- libstdc++-v3/testsuite/29_atomics/atomic_ref/generic.cc | 2 +- libstdc++-v3/testsuite/29_atomics/atomic_ref/integral.cc | 2 +- libstdc++-v3/testsuite/29_atomics/atomic_ref/pointer.cc | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libstdc++-v3/testsuite/29_atomics/atomic/compare_exchange_padding.cc b/libstdc++-v3/testsuite/29_atomics/atomic/compare_exchange_padding.cc index 01f7475631e6..859629e625f8 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic/compare_exchange_padding.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic/compare_exchange_padding.cc @@ -1,5 +1,5 @@ // { dg-do run { target c++20 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-cmpxchg-word "" } // { dg-add-options libatomic } #include diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.cc b/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.cc index 89ed381fe057..2e154178dbd7 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.cc @@ -1,5 +1,5 @@ // { dg-do run { target c++11 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-cmpxchg-word "" } // Copyright (C) 2009-2023 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc b/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc index f3f38b54dbcd..6439873be133 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc @@ -16,7 +16,7 @@ // . // { dg-do run { target c++20 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-cmpxchg-word "" } #include #include diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc index 6f723eb5f4e7..6cb1ae2b6dda 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc @@ -1,5 +1,5 @@ // { dg-do run { target c++11 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-cmpxchg-word "" } // Copyright (C) 2008-2023 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc index 6f723eb5f4e7..6cb1ae2b6dda 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc @@ -1,5 +1,5 @@ // { dg-do run { target c++11 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-cmpxchg-word "" } // Copyright (C) 2008-2023 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc b/libstdc++-v3/testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc index 2a3d1d468c22..25ccd2e94336 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc @@ -1,5 +1,5 @@ // { dg-do run { target c++20 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-cmpxchg-word "" } // { dg-add-options libatomic } #include diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_ref/generic.cc b/libstdc++-v3/testsuite/29_atomics/atomic_ref/generic.cc index f8751756d02c..c342b1aae292 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_ref/generic.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_ref/generic.cc @@ -16,7 +16,7 @@ // . // { dg-do run { target c++20 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-cmpxchg-word "" } // { dg-add-options libatomic } #include diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_ref/integral.cc b/libstdc++-v3/testsuite/29_atomics/atomic_ref/integral.cc index eb22afca03a2..134fb16506c3 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_ref/integral.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_ref/integral.cc @@ -16,7 +16,7 @@ // . // { dg-do run { target c++20 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-cmpxchg-word "" } // { dg-add-options libatomic } #include diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_ref/pointer.cc b/libstdc++-v3/testsuite/29_atomics/atomic_ref/pointer.cc index 6fe00b557567..fd26a053151f 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_ref/pointer.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_ref/pointer.cc @@ -16,7 +16,7 @@ // . // { dg-do run { target c++20 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-cmpxchg-word "" } // { dg-add-options libatomic } #include