From patchwork Thu Nov 7 11:22:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 841388 Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp1010789wru; Thu, 7 Nov 2024 03:23:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXzGP5nPSfdDTd3QImyfXJABIzZEd9ZHD+Bk2I3QJtHf4McbQbcLXAabvp14kLPxjYsXqrNdA==@linaro.org X-Google-Smtp-Source: AGHT+IGqgiAIwy0CtmOFfmHcSbmSl9otnn4MJj+5tv/oBahjFhybBzT+7P/p9ETFjAzgSSClfgAw X-Received: by 2002:a05:6358:d594:b0:1c3:84b9:48 with SMTP id e5c5f4694b2df-1c63ce69b08mr22907655d.1.1730978612615; Thu, 07 Nov 2024 03:23:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1730978612; cv=pass; d=google.com; s=arc-20240605; b=BKHj+LEVM/G+MWB5L99iO9f5bs+bWGxSvQMF2eRd43lD3Q0NyBGMF1DqV9TaI5z1ze AtIKsVTyTsF2bDTOGGXpegCL0B1VE6LdOmUSTVUfrOh8MMKU4jERw+5iF4UQDWU/Sz7y T3mQfVgUggwUv63XZS/j2wxZC3no11wOrUTqvrp88KcFQKIgQSBcxMgRNFDEN3mxfaH/ bC4rjGZey3zQueueazbZF1/49kTG8W5tAZC1ROy9G2lqG/k28ykNKDPvCVBsBTe854Ou IsggW2VGa9qH2nbt9Aa/BhWEVDTOdf0H1aV4xp4hSVqANHyAQS7kz1C+gbh6VcF8JVqf HUZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=1+xkDmHZPHCrGoPJTQjffOW8wLxC90nVZbCzYf56M3g=; fh=ILqJ9iYkZIaMPnldSliiVlB++6gxdkFS3YMShX9O5cE=; b=LEpaNb9xafyzRyVyywlxuYUJ1DXXuNG+8B+0PshP/iuMLBs8SmTd9Lj225w0O47mgu 6wPpFkzY5AAAyC8Ulk2AjSSChHxlESw7/QEwgmKSmeOb+ZUJvDSkVruQgA0LCR8qksW5 vWGn9T/bQrXnQ777KUT8AhTk+BwVZkpm6Oqcvthcfw1pm+JrGbdTguL5NSFYb/ghRqSA DLslLkPTDrJ/YEAUPEGzHYPVtPQ1jrJebuFH6aVtCyMaVEEBJcQVZ0Eczuh/IVs9V6c2 fhD6n06se33V/Ty2QZKHHZdyKI5LpqSUjgpTCmvHYOP8QQbPpKLjF1Yo7y6A2uIyIgq5 ILDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="QuOjbNL/"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 6a1803df08f44-6d39664dfb2si12932396d6.248.2024.11.07.03.23.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2024 03:23:32 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="QuOjbNL/"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 386E43858D34 for ; Thu, 7 Nov 2024 11:23:32 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id A94553858D21 for ; Thu, 7 Nov 2024 11:23:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A94553858D21 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A94553858D21 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::433 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730978601; cv=none; b=HUi+YUfeBSnfvYGylyqD44V5Dk2uspjCJlTZZAXMfKAVhHDgU8NzqreqZ1ly2hBJTCQ+bShEjULx5aFVXuX5+T56GUmeisxOj2+p5DfbvQjGrjMu+ss3WkmvtrOHxqTafvqNwUuLfRK8nvIdFwN7R5VLrYVIKxuL9JJetyO+TOs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730978601; c=relaxed/simple; bh=iPYTjqy31Ws4WMPeNiKAAFnAWcFC8JggDjPEUvR9tc4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ovbiWMHkgv+U11TtTGj/5k54IMf+Yb49zOZVjxzLrWZbD2SSHk3vAKqIt8/9mWCHAzmv+7wxasgmFztlxoDv/wFs56+XCPV9Kw/8pvsujuSTHfZwIKb/82foWZAGKn9JBmx2Ng5ZstkhozLNNNzqZG9GGCAwifMEl3m4HQbgHhY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-37ed3bd6114so503265f8f.2 for ; Thu, 07 Nov 2024 03:23:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730978596; x=1731583396; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1+xkDmHZPHCrGoPJTQjffOW8wLxC90nVZbCzYf56M3g=; b=QuOjbNL/O/jf038rNS/pdyltlWOnJX8fvo9VLR3FuIa4ctTVAQ2MFlD9xkq3PbFJLM kZMfmwJJzv/LciyoEdYQpdJgWeqipsPQsqVJjpGsjhA6C+0ppMH9FkF0tYGtx+OxI1so Y4VNgHIr80P+hAq9Tjym4gbZM3LGibDOenNFxcwMXFTnn48YleKvWq3Ws0DHNk0krMjK 7wF2WbxKMsycdbXka2uFO2SrSEU7Y6L6naxxxG5qeCTJ4XkHBKuUd8UTdNhAD+aoi8wt YBDSKA4HbmXxlZoy8QqXIpzOtyolaocQujO+3J9faBp6ahQOzFR5t8ugujht7bRkVWK4 15kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730978596; x=1731583396; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1+xkDmHZPHCrGoPJTQjffOW8wLxC90nVZbCzYf56M3g=; b=ACjokYDBZFlwghWPvZRMujPMa89SiBZNMDwV70oDdGRPwBV17WrKPxBaZWxkdMx0xC iYDs3H9U1MGeT1UQx0LX+CX3aqkw0aWROQDt27vLpsHB6m88Jg6APP3hgs89FUB1vG8N VX8l20XFvnb8ofWB10Q3XW4HnPBZchc3JNSuttaC1ApsFXxzKK4NNNutJ4vMGTU55iS+ 22B0g3mKbgwQ95sDaPTkKLZVzCPArTeddr0GhjRcNszYNGwFq9pYxESiL0zojWqcdy3k q/7CYB5qR1LhJHmM+0VedNPXF6VnTDlYDcvMmJPoy/vyMfskZ9MX0qssvhfMxZm9VZqc dDXA== X-Gm-Message-State: AOJu0YxjzT7lNM+OByoofbH+AAryazxgvCJsqXkkF1SKBPVQu2P4ySaJ g1tVtR030ZYpL0Ulx1H8hvmTBSw6Xm1oDlLkn2vsTwrGarwNZNw5T9ZQJejK8hxEIuLw5S7uq6j luf1sOQ== X-Received: by 2002:a05:6000:4817:b0:37d:4fe9:b6a4 with SMTP id ffacd0b85a97d-381c7ab30a6mr19542532f8f.50.1730978596576; Thu, 07 Nov 2024 03:23:16 -0800 (PST) Received: from ubuntu-vm.. ([89.101.134.25]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381ed99681csm1492817f8f.49.2024.11.07.03.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2024 03:23:16 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: caiyinyu , Xi Ruoyao , Adhemerval Zanella Subject: [COMMITTED] math: Fix log10f on some ABIs Date: Thu, 7 Nov 2024 08:22:05 -0300 Message-ID: <20241107112205.503624-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org The commit 9247f53219 triggered some regressions on loongarch and riscv: math/test-float-log10 math/test-float32-log10 And it is due a wrong sync with CORE-MATH for special 0.0/-0.0 inputs. Checked on aarch64-linux-gnu and loongarch64-linux-gnu-lp64d. --- sysdeps/ieee754/flt-32/e_log10f.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sysdeps/ieee754/flt-32/e_log10f.c b/sysdeps/ieee754/flt-32/e_log10f.c index 058ce31f09..03d9e281f3 100644 --- a/sysdeps/ieee754/flt-32/e_log10f.c +++ b/sysdeps/ieee754/flt-32/e_log10f.c @@ -37,9 +37,8 @@ as_special (float x) return x; /* +inf */ uint32_t ax = ux << 1; if (ax == 0u) - { /* -0.0 */ - __math_divzerof (1); - } + /* -0.0 */ + return __math_divzerof (1); if (ax > 0xff000000u) return x + x; /* nan */ return __math_invalidf (x);