From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-1.7 required=3.0 tests=AWL,BAYES_00,BODY_8BITS, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, PDS_OTHER_BAD_TLD,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6578D1F910 for ; Wed, 23 Nov 2022 02:56:02 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 345533854562 for ; Wed, 23 Nov 2022 02:56:01 +0000 (GMT) Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id CB41A385782B for ; Wed, 23 Nov 2022 02:55:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CB41A385782B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.20.4.143]) by gateway (Coremail) with SMTP id _____8Cx5vCsi31jpicAAA--.539S3; Wed, 23 Nov 2022 10:55:41 +0800 (CST) Received: from [10.20.4.143] (unknown [10.20.4.143]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxV1egi31j+XoYAA--.45675S3; Wed, 23 Nov 2022 10:55:30 +0800 (CST) Subject: Re: [PATCH 0/9] LoongArch: Use builtins with GCC >= 13 To: Xi Ruoyao , adhemerval.zanella@linaro.org, libc-alpha@sourceware.org, caiyinyu@loongson.cn Cc: xuchenghua@loongson.cn, chenglulu@loongson.cn References: <20221118112912.2501774-1-tangxiaolin@loongson.cn> <16d2603ead227edc39cd46bbd25c0fb4611c0392.camel@xry111.site> From: tangxiaolin Message-ID: <10232800-21df-036f-f4f8-115a886183bc@loongson.cn> Date: Wed, 23 Nov 2022 10:55:28 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <16d2603ead227edc39cd46bbd25c0fb4611c0392.camel@xry111.site> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CM-TRANSID: AQAAf8BxV1egi31j+XoYAA--.45675S3 X-CM-SenderInfo: pwdqw5xldrzx3q6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBjvJXoWxAr17Cr45KF4fZw45JFWxCrg_yoWrZF17pa yxury5JryUC3WxJrsFv3WaqFyrAF4xWw1UAr13ta4UZr18Cr1YqrWavr1qgFy7Gw48Gr1q 9r1rGa4UuFn8JFJanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU baAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1l e2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2 IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v26r1j6r4U McvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCYjI0SjxkI62AI1cAE67vIY487Mx AIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI1I0E14v26r126r1D MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67 AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0 cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z2 80aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI 43ZEXa7IU1QVy3UUUUU== X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" Oops, I just resend {1,8,9}/9 with cover-patch, and still haven't solved this problem. I will resend this series again with v2 version, which is added ilogb function. 在 2022/11/23 上午12:20, Xi Ruoyao 写道: > Hi Xiaolin, > > I guess you need to resent the series because {1,8,9}/9 lacks the proper > In-Reply-To: header, causing them missing from the patchwork interface > (https://patchwork.sourceware.org/project/glibc/list/?series=14494). > The reviewers will use the patchwork interface to track the patches. > > On Fri, 2022-11-18 at 19:29 +0800, Xiaolin Tang wrote: >> Patch 0001-0007: >> GCC 13, LoongArch support builtins for {,l,ll}rint, logb, >> use these built-ins instead of generic function implementation. >> >> Patch 0008: >> GCC 13, LoongArch support ___builtin_scalbn{,f} with -fno-math-errno, >> but only "libm" can use -fno-math-errno in GLIBC, and scalbn is in >> libc >> instead of libm because __printf_fp calls it. So inline assembler of >> the scalbn functions is a better choice for LoongArch. >> >> Patch 0009: Add LoongArch support for scalb[f]. >> >> Discuss with Xi Ruoyao >> Link: >> https://sourceware.org/pipermail/libc-alpha/2022-November/143425.html >> >> Xi Ruoyao (1): >>   LoongArch: Use __builtin_rint{,f} with GCC >= 13 >> >> Xiaolin Tang (8): >>   Use GCC builtins for lrint functions if desired. >>   LoongArch: Use __builtin_lrint{,f} with GCC >= 13 >>   Use GCC builtins for llrint functions if desired. >>   LoongArch: Use __builtin_llrint{,f} with GCC >= 13 >>   Use GCC builtins for logb functions if desired. >>   LoongArch: Use __builtin_logb{,f} with GCC >= 13 >>   LoongArch: Add support for scalbn[f] >>   LoongArch: Add support for scalb[f] >> >>  sysdeps/generic/math-use-builtins-llrint.h    |  4 ++ >>  sysdeps/generic/math-use-builtins-logb.h      |  4 ++ >>  sysdeps/generic/math-use-builtins-lrint.h     |  4 ++ >>  sysdeps/generic/math-use-builtins.h           |  3 + >>  sysdeps/ieee754/dbl-64/s_llrint.c             | 18 ++++-- >>  sysdeps/ieee754/dbl-64/s_logb.c               |  5 ++ >>  sysdeps/ieee754/dbl-64/s_lrint.c              | 18 ++++-- >>  sysdeps/ieee754/float128/float128_private.h   |  6 ++ >>  sysdeps/ieee754/flt-32/s_llrintf.c            | 18 ++++-- >>  sysdeps/ieee754/flt-32/s_logbf.c              |  5 ++ >>  sysdeps/ieee754/flt-32/s_lrintf.c             | 18 ++++-- >>  sysdeps/ieee754/ldbl-128/s_llrintl.c          | 17 ++++-- >>  sysdeps/ieee754/ldbl-128/s_logbl.c            |  6 ++ >>  sysdeps/ieee754/ldbl-128/s_lrintl.c           | 17 ++++-- >>  sysdeps/loongarch/fpu/e_scalb.c               | 60 >> +++++++++++++++++++ >>  sysdeps/loongarch/fpu/e_scalbf.c              | 60 >> +++++++++++++++++++ >>  .../loongarch/fpu/math-use-builtins-llrint.h  | 10 ++++ >>  .../loongarch/fpu/math-use-builtins-logb.h    | 10 ++++ >>  .../loongarch/fpu/math-use-builtins-lrint.h   | 10 ++++ >>  .../loongarch/fpu/math-use-builtins-rint.h    |  9 +++ >>  sysdeps/loongarch/fpu/s_scalbn.c              | 29 +++++++++ >>  sysdeps/loongarch/fpu/s_scalbnf.c             | 29 +++++++++ >>  22 files changed, 326 insertions(+), 34 deletions(-) >>  create mode 100644 sysdeps/generic/math-use-builtins-llrint.h >>  create mode 100644 sysdeps/generic/math-use-builtins-logb.h >>  create mode 100644 sysdeps/generic/math-use-builtins-lrint.h >>  create mode 100644 sysdeps/loongarch/fpu/e_scalb.c >>  create mode 100644 sysdeps/loongarch/fpu/e_scalbf.c >>  create mode 100644 sysdeps/loongarch/fpu/math-use-builtins-llrint.h >>  create mode 100644 sysdeps/loongarch/fpu/math-use-builtins-logb.h >>  create mode 100644 sysdeps/loongarch/fpu/math-use-builtins-lrint.h >>  create mode 100644 sysdeps/loongarch/fpu/math-use-builtins-rint.h >>  create mode 100644 sysdeps/loongarch/fpu/s_scalbn.c >>  create mode 100644 sysdeps/loongarch/fpu/s_scalbnf.c >>