From patchwork Tue Mar 28 10:42:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matthias Kretz X-Patchwork-Id: 75979 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2114397vqo; Tue, 28 Mar 2023 03:43:46 -0700 (PDT) X-Google-Smtp-Source: AKy350Zzvz5gca4+khSWevldg5FuuxnZNTFMv4fISv9AZKD6tuXWoWhbxfJcn7yCnK0BljrV5/1A X-Received: by 2002:a05:6402:1110:b0:4fb:6357:f393 with SMTP id u16-20020a056402111000b004fb6357f393mr14463932edv.1.1680000226116; Tue, 28 Mar 2023 03:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680000226; cv=none; d=google.com; s=arc-20160816; b=hLZ11OJvyLSs+U8HTsINKafvPdY1srmWlRdsKd4/KO9UJfuqZQwEfysonwY/yownpN YUb9dbH2Kg4eem22hxIwPDIjIDdvvXg1I6iJtoTJx2jD/pybCGEWKwnTiX0TKM+mkU60 ZbE1kGrjXOAJUzy/teLt03Y9YX3IWMunkp/ZjDpGW96xLJIKtYuD5EXz4axBlr8kN38E gVn8lyTFZH+RH2pJCMr4yoIB8sa+v1ykdE9ng33HltXE3gPaHwnL+0kMyaxgI2vg5mUr viAAzDN+/fjWRCO5RXJFdFETN+G1uBAoVqs0ZTUA50SlvGEoML1GGTbpk9olCaKnK6Ub fyrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:organization:message-id:date :subject:to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=u/cN2ZC4g/tmJLbZwzKVdLeoPPOCK6dr3IQZt+wQVMI=; b=ioKBBzVKNFqmSeWVT4Uq/sFdGQnMdkxJFIw1b3KvKlU069rTwqhN3ji6DeOWJRFtlJ bekkWOVnSmrfHEkuiaHsGqKSnwCc7s7LzsHoOr5UrkoXxV+eNOIFZVko6S8+Von0YA9A mDT0J1LSl8vf3RYRPj8JYiCJ1NcBBM27xEK5PasZPMzox0/RLPVigt8yVnpOAMTqKqyz MaWsYz5MSml0J/TsLbYBayV6xi7C7ASZEGIZrLmaWuZPnTAJ3LZCCzam5nGRwulPMqEy +kKHFLqPStdZTeeDPa2p0IiA93DnOvCGiz0WMQuOOcRkrCp4Dd7tPd6mtKyX6CctTGym uycw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=DFhfRuxJ; 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=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id e1-20020a50fb81000000b005021f0d575esi12669778edq.677.2023.03.28.03.43.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 03:43:46 -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=@gcc.gnu.org header.s=default header.b=DFhfRuxJ; 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=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3C9023854833 for ; Tue, 28 Mar 2023 10:43:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C9023854833 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680000206; bh=u/cN2ZC4g/tmJLbZwzKVdLeoPPOCK6dr3IQZt+wQVMI=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=DFhfRuxJ/mPul9prPgS7LJ7zvVgBz5h3DXHYpyDQpa5lVAKXfPOi12PzzOzy9YecA 2nEF26W+BwR7pLXBZcLa4Z3NaS69Q4qvnpbaY7oEu2J5ABf8GPHd2hv7LnNCptYsej g4qkau3MV6HI4pjPHx+hod7onexyBDlgIMJubEro= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from lxmtout1.gsi.de (lxmtout1.gsi.de [140.181.3.111]) by sourceware.org (Postfix) with ESMTPS id 464D63858D39; Tue, 28 Mar 2023 10:42:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 464D63858D39 Received: from localhost (localhost [127.0.0.1]) by lxmtout1.gsi.de (Postfix) with ESMTP id 7FE5D2051044; Tue, 28 Mar 2023 12:42:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at lxmtout1.gsi.de Received: from lxmtout1.gsi.de ([127.0.0.1]) by localhost (lxmtout1.gsi.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Zv8O35Z4unzO; Tue, 28 Mar 2023 12:42:41 +0200 (CEST) Received: from srvEX6.campus.gsi.de (unknown [10.10.4.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lxmtout1.gsi.de (Postfix) with ESMTPS id 656912051040; Tue, 28 Mar 2023 12:42:41 +0200 (CEST) Received: from minbar.localnet (140.181.3.12) by srvEX6.campus.gsi.de (10.10.4.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Tue, 28 Mar 2023 12:42:41 +0200 To: , Subject: [committed] libstdc++: Fix operator% implementation for Clang Date: Tue, 28 Mar 2023 12:42:40 +0200 Message-ID: <12813636.nUPlyArG6x@minbar> Organization: GSI Helmholtz Centre for Heavy Ion Research MIME-Version: 1.0 X-Originating-IP: [140.181.3.12] X-ClientProxiedBy: srvEX7.Campus.gsi.de (10.10.4.97) To srvEX6.campus.gsi.de (10.10.4.96) X-Spam-Status: No, score=-10.2 required=5.0 tests=BAYES_00, BODY_8BITS, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Matthias Kretz via Gcc-patches From: Matthias Kretz Reply-To: Matthias Kretz Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761607916789007373?= X-GMAIL-MSGID: =?utf-8?q?1761607916789007373?= This resolves a regression of my previous fix where Clang would ICE on _S_divides. Signed-off-by: Matthias Kretz libstdc++-v3/ChangeLog: * include/experimental/bits/simd_x86.h (_SimdImplX86): Use _Base::_S_divides if the optimized _S_divides function is hidden via the preprocessor. --- libstdc++-v3/include/experimental/bits/simd_x86.h | 2 ++ 1 file changed, 2 insertions(+) -- ────────────────────────────────────────────────────────────────────────── Dr. Matthias Kretz https://mattkretz.github.io GSI Helmholtz Centre for Heavy Ion Research https://gsi.de stdₓ::simd ────────────────────────────────────────────────────────────────────────── diff --git a/libstdc++-v3/include/experimental/bits/simd_x86.h b/libstdc++-v3/include/experimental/bits/simd_x86.h index 2a3e74d9119..fc3e96d696c 100644 --- a/libstdc++-v3/include/experimental/bits/simd_x86.h +++ b/libstdc++-v3/include/experimental/bits/simd_x86.h @@ -1524,6 +1524,8 @@ _CsrGuard() */ return _Base::_S_divides(__x, __y); } +#else + using _Base::_S_divides; #endif // _GLIBCXX_SIMD_WORKAROUND_PR90993 // }}}