From patchwork Fri Nov 29 13:17:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 846136 Delivered-To: patch@linaro.org Received: by 2002:adf:f2c4:0:b0:382:43a8:7b94 with SMTP id d4csp865805wrp; Fri, 29 Nov 2024 05:38:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUQD8CYeFnccuLlFDqxYKjuAe8ZXL9oEckXpiI/QCWSKIYbT2h8iNPb+WyxRK6wbotzx4B3NA==@linaro.org X-Google-Smtp-Source: AGHT+IEjiMD0iiP9P4und94NtkxDFOSavTam8C8SjRQOpMQxIo+9VaASvPyUvGkGXASE9FCm6y2x X-Received: by 2002:a05:6359:459d:b0:1ca:95cc:dbc2 with SMTP id e5c5f4694b2df-1cab159bb56mr532238855d.2.1732887491311; Fri, 29 Nov 2024 05:38:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1732887491; cv=pass; d=google.com; s=arc-20240605; b=Za0vO1RE188z9AzWucT0pvz2hTzPprvwp/c8o3/gbpBI9XmQpsFR5UtS1dx7cudsUN Qwrrx633B9EN/kWr0swsY9A+NdvWJYTZ53DymZxRHD6xljcIHV0iO3N7j0CO0b7pLdQJ JlYi9rE8nka28CdlsIVbZr2Xu1cp4ke/7eiYFzSZkbIBf+O95vFxtbxEtZ4f0ng2ZOKW HMtm3GNHwLAAt6b977voFi31r1GKJeov0vvTNFGxB+QVJOxGBKDmhgbIy+Mf22t/uyRs cE5MARM3P8qCUQiw1+7XCysk4jZJMhgc1OnsYvM/ZU6yu2SrXtFx9aONUnANrT7XEOxv CW2Q== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter:arc-filter:dmarc-filter :delivered-to:dkim-filter; bh=mgmZFwsck4ceL/UY4BIegEAwcpMJpqfR0g6cQNtwP9k=; fh=/bzLn4Pu6wt5yJOmVA6NJX5WuFMrzV1CRzIGBeRqGpk=; b=GmyNk7/gegfbhhU4WuCnIS8zHw36R3rYbIE0MjGq4+U+kidHd3veq+dsmHCJbP+3lB +ELje68TeJeKj8wqTVL8eed8eD9fO2vC13I4bhITuCJz9NKYChmMxIuPj512D/0ZwVj2 YZw9ZhgC3exQ9Bhd1u5WarUiApujRel2jhCbnOQv2aCGw8+vxDb+9qpx8+rPKRO9MiKU Ce93aBcvWipUCgv6F0nxtuTYK91Q1vE0ANtXbioNBXlvXC4LKLRiXmu8y6pQiGUKW+xo eEXIMznKdcuzKsa42+sY6hvLrV6FUnCFKIOrupU3/Btz6NURj7JTY9z3Pvo/hOr18Rvt 0hmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kYfwiKHl; 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 71dfb90a1353d-5156cd0afb5si1766779e0c.84.2024.11.29.05.38.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2024 05:38:11 -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=kYfwiKHl; 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 C3D673858CD1 for ; Fri, 29 Nov 2024 13:38:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3D673858CD1 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=kYfwiKHl X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id 9B6093858C32 for ; Fri, 29 Nov 2024 13:21:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9B6093858C32 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 9B6093858C32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::629 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732886461; cv=none; b=TRbHD5E0TK5U4RUcFlBHZzZr1abTdNfhYSQOtz1w75/DUgkPFRTiHWOBuell6AXhoXIJkXcvcv2wXW88m2ElFJPEJnztEra0w3TyrWL9KrTi4x6eHlr+Xwns4KL2QacsdtD+rP1YmRR84GxqP0NhQCZLPVnI32pzKFK2QPdY94Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732886461; c=relaxed/simple; bh=9LEQLKk77Ku5R1lAu+ZhPMl+XwU4/TlrKIf4FaOvAU4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=K93dG4MJakEWAVyKCmDgOJd4+IIgJR5EiwQLwvIS1jjW6jRM9awefcdyt4cjGOwdcNvNLNtMS2V8TaracnSwNQsBi5GRBk5Rctn9EHqT2wxKyhlv6Wdp8o/rSn6U2CQjGD1ZDnsXfsTDs6YgDevHQO0YJebIaRSvO85wJ/o9WcE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B6093858C32 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-2142214abd2so13783415ad.0 for ; Fri, 29 Nov 2024 05:21:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732886460; x=1733491260; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mgmZFwsck4ceL/UY4BIegEAwcpMJpqfR0g6cQNtwP9k=; b=kYfwiKHlzLd49lm9cNhvOJThgtPnzzwT4w2gVYZSHQ2zWwAHJ6YJMXhzIoWfEeE+Nb cXCWTw3tOxJCEDAV3EETgkywjkAkhPc2hIHA/1Y/d0j68wxI0TGlFq0yF+7X8jfpS0Ye HO/EIm2BQJGWUpBYcBUBSnqnXPp+/mVDiZ15wzhgo8SL/3HJ8FSC8aBipNTMNsjcDYd8 hr6p7h8wu9Xs+X31hz0CO9VJ7uOjwMlf/f5tEwjV7jTvklCMNIH9J2j6upG2mjh+VmG6 XZ6h00Rv7fvsUJ+csmlLQYxJZOi7fwyA7TuWCWjUnLpnkI8djmwKH3ahP2bwHKNj6laz 6xBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732886460; x=1733491260; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mgmZFwsck4ceL/UY4BIegEAwcpMJpqfR0g6cQNtwP9k=; b=GpVDv68zOs71y5FQ+wxXSLDp4JHOQXMvm4o2kJOcKgqNi7bpCd9XVsu4zt07ittD0s oUW5B0d9cloudpIznGL21reD2spm/wDvP3PtOfMmdql3Utyp8kQxd+kb6HDybzf0julA SkZIS+6OU2OeyCGmsVx7oCTtFdxt5VBFnRMpDsj6ogoFL54hwljQC3+Lkws5ZBcSCW4e ZHo8Hj/w2cNGR3o4bN7j8XDQ7y6JZsbirsE+jr5hHu8Bvo2tosj4amGm6xZT+SVGmI9K v9xbEZkFofQ8xrkiTGCaivPBMV6FMRjWMW6ROiQPD8YoyVvQKwhIM+LYu+W5prnT1czg 2V5Q== X-Gm-Message-State: AOJu0YzmkwjOtEONm0czG3pweVC75u3Kyt4+BHAGX/rqxWXC+0gImDW7 Sz8ievIM/R/Uj4Vt3UbpN/GEbEXZZS2p2ksxEfBY4jUM8h7jI9CIK5ddjCOlae9h9pVXdBdxsz3 ReLLc2A== X-Gm-Gg: ASbGncuyOGRyCSuk1NA5+ZenFf51T2w8VqpRikfHNv5C23qLKdVTa8SPv+wTy1HNESz 0T82gmyX1ZiDhyRYaAGTbbf/0DqWi8Kw2PBSBetcSXdROAHPdL9ZPTCXdF8serPafjXBPK+rO9o +5a4HTGrclU9QPq2Vr2VqYbd+8H3XlhsBSGHY85x7XIhKg2cMCqUT+VLCYPjwbCvz/u9BihZq4E Vj6QIHk7k+Cx4jMb4U1KdYjD50VVpMJzR+8xCHG/m/LpB8Y3GSkszfv3XlSxjU= X-Received: by 2002:a17:902:fc47:b0:215:5204:3913 with SMTP id d9443c01a7336-21552044c13mr4300505ad.52.1732886460160; Fri, 29 Nov 2024 05:21:00 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c1:68c8:3143:6603:ad16:715e]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2153d5f66d5sm14472255ad.201.2024.11.29.05.20.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2024 05:20:59 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: DJ Delorie Subject: [PATCH 12/23] math: Fix the expected atanf (inf) results Date: Fri, 29 Nov 2024 10:17:36 -0300 Message-ID: <20241129132032.476978-13-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241129132032.476978-1-adhemerval.zanella@linaro.org> References: <20241129132032.476978-1-adhemerval.zanella@linaro.org> 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 M_PI_2 (lit_pi_2_d) constant is not the expected value for atanf on non-default rounding modes. Instead use the autogenerated value. --- math/auto-libm-test-in | 2 ++ math/auto-libm-test-out-atan | 50 ++++++++++++++++++++++++++++++++++++ math/libm-test-atan.inc | 2 -- 3 files changed, 52 insertions(+), 2 deletions(-) diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in index b570e88e78..83f125b313 100644 --- a/math/auto-libm-test-in +++ b/math/auto-libm-test-in @@ -394,6 +394,8 @@ asinh -min_subnorm asinh max asinh -max +atan inf +atan -inf atan 0 atan -0 atan max diff --git a/math/auto-libm-test-out-atan b/math/auto-libm-test-out-atan index 334894a90a..cc41d61239 100644 --- a/math/auto-libm-test-out-atan +++ b/math/auto-libm-test-out-atan @@ -1,3 +1,53 @@ +atan inf += atan downward binary32 plus_infty : 0x1.921fb4p+0 : inexact-ok += atan tonearest binary32 plus_infty : 0x1.921fb6p+0 : inexact-ok += atan towardzero binary32 plus_infty : 0x1.921fb4p+0 : inexact-ok += atan upward binary32 plus_infty : 0x1.921fb6p+0 : inexact-ok += atan downward binary64 plus_infty : 0x1.921fb54442d18p+0 : inexact-ok += atan tonearest binary64 plus_infty : 0x1.921fb54442d18p+0 : inexact-ok += atan towardzero binary64 plus_infty : 0x1.921fb54442d18p+0 : inexact-ok += atan upward binary64 plus_infty : 0x1.921fb54442d19p+0 : inexact-ok += atan downward intel96 plus_infty : 0x1.921fb54442d18468p+0 : inexact-ok += atan tonearest intel96 plus_infty : 0x1.921fb54442d1846ap+0 : inexact-ok += atan towardzero intel96 plus_infty : 0x1.921fb54442d18468p+0 : inexact-ok += atan upward intel96 plus_infty : 0x1.921fb54442d1846ap+0 : inexact-ok += atan downward m68k96 plus_infty : 0x1.921fb54442d18468p+0 : inexact-ok += atan tonearest m68k96 plus_infty : 0x1.921fb54442d1846ap+0 : inexact-ok += atan towardzero m68k96 plus_infty : 0x1.921fb54442d18468p+0 : inexact-ok += atan upward m68k96 plus_infty : 0x1.921fb54442d1846ap+0 : inexact-ok += atan downward binary128 plus_infty : 0x1.921fb54442d18469898cc51701b8p+0 : inexact-ok += atan tonearest binary128 plus_infty : 0x1.921fb54442d18469898cc51701b8p+0 : inexact-ok += atan towardzero binary128 plus_infty : 0x1.921fb54442d18469898cc51701b8p+0 : inexact-ok += atan upward binary128 plus_infty : 0x1.921fb54442d18469898cc51701b9p+0 : inexact-ok += atan downward ibm128 plus_infty : 0x1.921fb54442d18469898cc517018p+0 : inexact-ok += atan tonearest ibm128 plus_infty : 0x1.921fb54442d18469898cc517018p+0 : inexact-ok += atan towardzero ibm128 plus_infty : 0x1.921fb54442d18469898cc517018p+0 : inexact-ok += atan upward ibm128 plus_infty : 0x1.921fb54442d18469898cc51702p+0 : inexact-ok +atan -inf += atan downward binary32 minus_infty : -0x1.921fb6p+0 : inexact-ok += atan tonearest binary32 minus_infty : -0x1.921fb6p+0 : inexact-ok += atan towardzero binary32 minus_infty : -0x1.921fb4p+0 : inexact-ok += atan upward binary32 minus_infty : -0x1.921fb4p+0 : inexact-ok += atan downward binary64 minus_infty : -0x1.921fb54442d19p+0 : inexact-ok += atan tonearest binary64 minus_infty : -0x1.921fb54442d18p+0 : inexact-ok += atan towardzero binary64 minus_infty : -0x1.921fb54442d18p+0 : inexact-ok += atan upward binary64 minus_infty : -0x1.921fb54442d18p+0 : inexact-ok += atan downward intel96 minus_infty : -0x1.921fb54442d1846ap+0 : inexact-ok += atan tonearest intel96 minus_infty : -0x1.921fb54442d1846ap+0 : inexact-ok += atan towardzero intel96 minus_infty : -0x1.921fb54442d18468p+0 : inexact-ok += atan upward intel96 minus_infty : -0x1.921fb54442d18468p+0 : inexact-ok += atan downward m68k96 minus_infty : -0x1.921fb54442d1846ap+0 : inexact-ok += atan tonearest m68k96 minus_infty : -0x1.921fb54442d1846ap+0 : inexact-ok += atan towardzero m68k96 minus_infty : -0x1.921fb54442d18468p+0 : inexact-ok += atan upward m68k96 minus_infty : -0x1.921fb54442d18468p+0 : inexact-ok += atan downward binary128 minus_infty : -0x1.921fb54442d18469898cc51701b9p+0 : inexact-ok += atan tonearest binary128 minus_infty : -0x1.921fb54442d18469898cc51701b8p+0 : inexact-ok += atan towardzero binary128 minus_infty : -0x1.921fb54442d18469898cc51701b8p+0 : inexact-ok += atan upward binary128 minus_infty : -0x1.921fb54442d18469898cc51701b8p+0 : inexact-ok += atan downward ibm128 minus_infty : -0x1.921fb54442d18469898cc51702p+0 : inexact-ok += atan tonearest ibm128 minus_infty : -0x1.921fb54442d18469898cc517018p+0 : inexact-ok += atan towardzero ibm128 minus_infty : -0x1.921fb54442d18469898cc517018p+0 : inexact-ok += atan upward ibm128 minus_infty : -0x1.921fb54442d18469898cc517018p+0 : inexact-ok atan 0 = atan downward binary32 0x0p+0 : 0x0p+0 : inexact-ok = atan tonearest binary32 0x0p+0 : 0x0p+0 : inexact-ok diff --git a/math/libm-test-atan.inc b/math/libm-test-atan.inc index 3581d3b5ee..19e441556b 100644 --- a/math/libm-test-atan.inc +++ b/math/libm-test-atan.inc @@ -20,8 +20,6 @@ static const struct test_f_f_data atan_test_data[] = { - TEST_f_f (atan, plus_infty, lit_pi_2_d, ERRNO_UNCHANGED), - TEST_f_f (atan, minus_infty, -lit_pi_2_d, ERRNO_UNCHANGED), TEST_f_f (atan, qnan_value, qnan_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED), TEST_f_f (atan, -qnan_value, qnan_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED), TEST_f_f (atan, snan_value, qnan_value, INVALID_EXCEPTION),