From nobody Thu Nov 28 07:35:19 2024 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XzSlD0NdNz5fKrf for ; Thu, 28 Nov 2024 07:35:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XzSlC52Gmz49cs for ; Thu, 28 Nov 2024 07:35:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732779319; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=myQKE8Vg0o6ibuTKsy9E5ZmMcYzjr7rjM0hBCsu1nM0=; b=SSKtlHbf4cp4vf9Y5IIDJjeTBmV/+myNFSVPqjnEPhW+MGf5iXKRsRKCN13mHngvd3WtBy jatDtwjzKdtG3TzOvC7YPpRjtsyhd2AeLSlI4Nk5DARkDrs054N2duBbClvZLUGfU/JPTx tF5DrxKNvJCogykO+lzQ6umvMHo5segIxkW1V1D8gVi/BMnE4S0hUOmnHdvDqUldHph7gt jzcuWR28lB6XuyZE9lqqpoAvmZhWI1wCidJWqKViVV7wgqP3Tk/ohWYPwnKRnoztflrFBL 8qNjD5tyNpGTzyYB8qcws+H7mzTLFPC7wdbkIROAFN3mm7trjMK9agqio8WeEQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732779319; a=rsa-sha256; cv=none; b=BKBcjPG5Q6m1vYR+Z0Y7MOkQXLCLvrGKsKG64PVsLpqOx84uA7yhox3JJ2bZkzZ1QzmltZ bydB+W/QI4GmwLdz6hnLxu3G3HI/W/BOx8aZkUBS/CDCkpVoSlYCpEVr9qKnuQZGFxG+V6 /XlhZX6yin3luNFRvUBCflh0OZPOZPtjyEjbVwLXprlxf8MC9OCkkjjht6iSkmqq14CR70 Jx5p1QkEUSBFsyn0IY6/k5HMxoEndgjHM3LqcShNKqAcNNh0pxrd9Yo26Gw6JXDEsBR5YK q42SHj0UDVLqNOGldpMBgCmIWaB7t+BfzvPmrGlfHYdG03amkLZVYSPqtWPhQw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XzSlC4dxrzVwt for ; Thu, 28 Nov 2024 07:35:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4AS7ZJrq009324 for ; Thu, 28 Nov 2024 07:35:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4AS7ZJ9N009322 for freebsd-arm@FreeBSD.org; Thu, 28 Nov 2024 07:35:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 283017] lib/msun/logarithm_test:generic_tests failed on arm64 Date: Thu, 28 Nov 2024 07:35:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: h237k77777@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283017 Bug ID: 283017 Summary: lib/msun/logarithm_test:generic_tests failed on arm64 Product: Base System Version: 15.0-CURRENT Hardware: arm64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: h237k77777@gmail.com CC: lwhsu@FreeBSD.org I am currently using FreeBSD 15.0-CURRENT, and the commit ID is 357185a966c10397c971ef23525943ebc47d58d9. This is some part of stderr output from testing with kyua-test in logarithm_test:generic_tests: *** Check failed: /usr/src/lib/msun/tests/logarithm_test.c:110: (0x00000001= ) !=3D fetestexcept((0x00000002 | 0x00000010 | 0x00000001 | 0x00000004 | 0x0000000= 8)): unexpected exception flags: got 0 not 0x1 for logl(-__builtin_inff()) ... *** Check failed: /usr/src/lib/msun/tests/logarithm_test.c:112: (0x00000001= ) !=3D fetestexcept((0x00000002 | 0x00000010 | 0x00000001 | 0x00000004 | 0x0000000= 8)): unexpected exception flags: got 0 not 0x1 for logl(-1.0) ... When using negative numbers as input for the logarithm function (log), an exception was expected to be raised, but none occurred. Below is an example program: #include #include #include void run_log_test(long double input, long double expected, int expected_exc= ept) { feclearexcept(FE_ALL_EXCEPT); long double result =3D logl(input); int raised_except =3D fetestexcept(FE_ALL_EXCEPT); printf("Test: log(%.25Lg)\n", input); printf("Expected: %.25Lg, Got: %.25Lg\n", expected, result); printf("Expected exceptions: 0x%x, Raised exceptions: 0x%x\n\n", expected_except, raised_except); } int main() { // log(-1.0) -> NaN, FE_INVALID run_log_test(-1.0L, NAN, FE_INVALID); // log(-INFINITY) -> NaN, FE_INVALID run_log_test(-INFINITY, NAN, FE_INVALID); return 0; } Output: Test: log(-1) Expected: nan, Got: nan Expected exceptions: 0x1, Raised exceptions: 0x0 Test: log(-inf) Expected: nan, Got: nan Expected exceptions: 0x1, Raised exceptions: 0x0 --=20 You are receiving this mail because: You are the assignee for the bug.=