From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 045CB3858D35 for ; Thu, 3 Aug 2023 14:59:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 045CB3858D35 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1691074776; bh=xMjNrZpAZ2ANt0Ts3UoWxXy1IIaL5UMGJf6VT6C99kQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=PfZ6b2eUbp3ozpumZ04TN1tnfRfG+7qHYmnxViVgM1tZkjYRxxiz/V/TpUuVfeIfT MuHG/0PfioogCG559AAw4HgPWtnCqfBu4ZiuSsZ7Y8Hy60WFWftdjwprRt7F4hkQ4A SlMVsbiRafucY7pBwyFBklgx5K91URltan1ej61E= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 3A065659A0; Thu, 3 Aug 2023 10:59:35 -0400 (EDT) Message-ID: <8bec8891782e4878f5726e70fedf0f80f93fae1e.camel@xry111.site> Subject: Re: [PATCH 2/2] Loongarch: Add ifunc support and add different versions of strlen From: Xi Ruoyao To: Adhemerval Zanella Netto , dengjianbo , caiyinyu , libc-alpha@sourceware.org Cc: xuchenghua@loongson.cn, huangpei@loongson.cn Date: Thu, 03 Aug 2023 22:59:34 +0800 In-Reply-To: <29863c0d1eb285c1eb62336c0e1592e317f89349.camel@xry111.site> References: <20230801070902.1385953-1-dengjianbo@loongson.cn> <20230801070902.1385953-3-dengjianbo@loongson.cn> <8367cd72-e458-7a1c-63af-01280d8ccc7a@linaro.org> <60b7843c-a32c-a1b5-ffc1-1ad769fb2d57@linaro.org> <2aed2087-c44e-8fed-83d1-5e60343c8f47@linaro.org> <29863c0d1eb285c1eb62336c0e1592e317f89349.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, 2023-08-03 at 22:53 +0800, Xi Ruoyao wrote: > >=20 > > I would advise to follow what other architecture did to provide > > arch-specific=20 > > optimization, which is either setup a minimum gcc/binutils version > > (for=20 > > instance aarch64 libmvec), or encode the instructions in a binutils > > neutral > > mode (as the powerpc implementation I pointed out). >=20 > Hmm, this policy seems different from $OTHER_PROJECTS. BTW I guess we should start to document some general rules about machine-specific optimizations in https://sourceware.org/glibc/wiki/Consensus or somewhere. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University