From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hall.aurel32.net (hall.aurel32.net [IPv6:2001:bc8:30d7:100::1]) by sourceware.org (Postfix) with ESMTPS id 323633858022 for ; Mon, 24 Oct 2022 18:57:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 323633858022 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=aurel32.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=aurel32.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date: Subject:Cc:To:From:Content-Type:From:Reply-To:Subject:Content-ID: Content-Description:In-Reply-To:References:X-Debbugs-Cc; bh=P1SwhMKNagFI0vHbuOEfiCW/SLNbRUGZHNcdiXj4wLs=; b=Cb3oG14ztNPgMLgcGWWGCOpCYo ePiDbGpvrJx0zgik5UQvBUNF6NaPE4HxqVEQQ5mr8/DLtxqJ2s5TES71QNnNts++I1V9E8WSIhoYt bPAlVhaVwSwzeIqwThEpK0IYrJTlJ3gHXoQkmsFP8g30G93/pAykNRFVD7CXgj+PKrVTBYbgJdH7Z ylSDCVDZVCY9ZUFsczE05PKbY7M1aUt5y4WV2WoIzhxR69Hs93xKDwH4Wx4s3WErXuLbQ6tAll3gW Hd5ARVQvYb97zBnT8Pmf/TnvDu8z/QmjuaX1dYCxhlR6eQFmdBpl9pB2HHRtmuTPSrfmIaJ/CRlb4 wYEFekzw==; Received: from [2a01:e34:ec5d:a741:8a4c:7c4e:dc4c:1787] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1on2dX-00DyoT-SZ; Mon, 24 Oct 2022 20:57:23 +0200 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.96) (envelope-from ) id 1on2dW-007INU-0f; Mon, 24 Oct 2022 20:57:22 +0200 From: Aurelien Jarno To: libc-stable@sourceware.org Cc: Michael Hudson-Doyle , Aurelien Jarno , Tulio Magno Quites Machado Filho Subject: [COMMITTED 2.36] Fix BZ #29463 in the ibm128 implementation of y1l too Date: Mon, 24 Oct 2022 20:57:17 +0200 Message-Id: <20221024185717.1738882-1-aurelien@aurel32.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,SPF_HELO_PASS,SPF_NONE,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 List-Id: From: Michael Hudson-Doyle Avoid moving code across SET_RESTORE_ROUNDL in order to fix [BZ #29463]. Tested-by: Aurelien Jarno Reviewed-by: Aurelien Jarno Reviewed-by: Tulio Magno Quites Machado Filho (cherry picked from commit b6e37b7805b0182c3e25cdab39ebf5f001c04d05) --- sysdeps/ieee754/ldbl-128ibm/e_j1l.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/ieee754/ldbl-128ibm/e_j1l.c b/sysdeps/ieee754/ldbl-128ibm/e_j1l.c index f85ba94466..0a5fe68342 100644 --- a/sysdeps/ieee754/ldbl-128ibm/e_j1l.c +++ b/sysdeps/ieee754/ldbl-128ibm/e_j1l.c @@ -792,10 +792,13 @@ __ieee754_y1l (long double x) { /* 0 <= x <= 2 */ SET_RESTORE_ROUNDL (FE_TONEAREST); + xx = math_opt_barrier (xx); + x = math_opt_barrier (x); z = xx * xx; p = xx * neval (z, Y0_2N, NY0_2N) / deval (z, Y0_2D, NY0_2D); p = -TWOOPI / xx + p; p = TWOOPI * __ieee754_logl (x) * __ieee754_j1l (x) + p; + math_force_eval (p); return p; } -- 2.35.1