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 9F2893858CD1 for ; Tue, 26 Dec 2023 22:50:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9F2893858CD1 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9F2893858CD1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=89.208.246.23 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703631024; cv=none; b=T0xl22sTS0oYU8P00cI+rFdLnNjDrW6jVfB/O9E/IrvE3jKBaETo8dWC43RIz8dREeKjtEAClqt18VqBV5ugLZYQCWPheP9L36RCr23yktiQKx1BA94XE0gxB02JOKtxehz4q473kPHPcemoAOPUpULUNrHZxGhJBmmSOqRw+x4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703631024; c=relaxed/simple; bh=mFk1vkAACRwJjsDLK8Ul2tcG0SxdHvJUfqnNQXmfXRg=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=tEv8eScliCm988ovVmIKYGSc/KHsSQGfk9tzI4pI0eraM8CROvJGY9V24Q/g9iSFTblCEMUIq/4OY2fxaap4JzWXb4VHaVcPdEKK3NJMks4p8eIOVFG5hwTPePQ1bh0HSZmlj1BuryUdkznsRCLsh60jsOHVZ7ggWHElzj6mkqs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1703631022; bh=mFk1vkAACRwJjsDLK8Ul2tcG0SxdHvJUfqnNQXmfXRg=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=B9SFKaxw/qa0P9vu18l/3mGLmrYjFG8FfSCcFsS2lhJPwbO8bevbjyyw25drLH+1Y sKnBViHbefsm4AaCYQrOR735iovm5xYsfE/IVhkGjb3pdTvoGE5WsyIiaHUOcRE0cq vuwliILgQDa2Il5HfpXP5Bbe6WInoOKMbDvINABA= Received: from [IPv6:240e:358:11e8:b100:dc73:854d:832e:2] (unknown [IPv6:240e:358:11e8:b100:dc73:854d:832e:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 161D167129; Tue, 26 Dec 2023 17:50:19 -0500 (EST) Message-ID: Subject: Re: [PATCH 2/2] MIPS: Hard-float rounding instructions support From: Xi Ruoyao To: Adhemerval Zanella Netto , Junxian Zhu , Jiaxun Yang Cc: libc-alpha@sourceware.org Date: Wed, 27 Dec 2023 06:50:15 +0800 In-Reply-To: References: <20231225103548.1615-2-zhujunxian@oss.cipunited.com> <20231225103548.1615-4-zhujunxian@oss.cipunited.com> <61ecc506-3796-49e1-a4f3-7a39807a1fc3@linaro.org> Autocrypt: addr=xry111@xry111.site; prefer-encrypt=mutual; keydata=mDMEYnkdPhYJKwYBBAHaRw8BAQdAsY+HvJs3EVKpwIu2gN89cQT/pnrbQtlvd6Yfq7egugi0HlhpIFJ1b3lhbyA8eHJ5MTExQHhyeTExMS5zaXRlPoiTBBMWCgA7FiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQrKrSDhnnEOPHFgD8D9vUToTd1MF5bng9uPJq5y3DfpcxDp+LD3joA3U2TmwA/jZtN9xLH7CGDHeClKZK/ZYELotWfJsqRcthOIGjsdAPuDgEYnkdPhIKKwYBBAGXVQEFAQEHQG+HnNiPZseiBkzYBHwq/nN638o0NPwgYwH70wlKMZhRAwEIB4h4BBgWCgAgFiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwwACgkQrKrSDhnnEOPjXgD/euD64cxwqDIqckUaisT3VCst11RcnO5iRHm6meNIwj0BALLmWplyi7beKrOlqKfuZtCLbiAPywGfCNg8LOTt4iMD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 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 Wed, 2023-12-27 at 05:50 +0800, Xi Ruoyao wrote: > On Tue, 2023-12-26 at 17:12 -0300, Adhemerval Zanella Netto wrote: > > Also, I see no point in implementing this optimizations with assembly w= here > > a C implementation would be way simpler and generate similar code. Simi= lar=20 > > to what I did for powerpc with sysdeps/powerpc/fpu/round_to_integer.h, = I=20 > > implemented a similar approach for MIPS [1].=C2=A0 The resulting code s= hould be=20 > > similar to the assembly implementation, taking in consideration the cor= rect=20 > > fix to save/restore floating-point exceptions. I did see no math regres= sion=20 > > on cfarm23 with a glibc built with -mabi=3D64 -mips64r2. >=20 > Is there a micro-benchmark result on the cfarm machine?=C2=A0 AFAIK the F= CSR > setting instruction may be much more slower than normal instructions, so > I'm not sure if this is really a win. Add Jiaxun who knows MIPS much better than me. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University