NetBSD Problem Report #59161
From www@netbsd.org Sun Mar 9 15:18:49 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 02E151A9239
for <gnats-bugs@gnats.NetBSD.org>; Sun, 9 Mar 2025 15:18:49 +0000 (UTC)
Message-Id: <20250309151847.500BC1A923C@mollari.NetBSD.org>
Date: Sun, 9 Mar 2025 15:18:47 +0000 (UTC)
From: thorpej@me.com
Reply-To: thorpej@me.com
To: gnats-bugs@NetBSD.org
Subject: lib/libc/gen/t_fpsetround test failures on Alpha
X-Send-Pr-Version: www-1.0
>Number: 59161
>Category: port-alpha
>Synopsis: lib/libc/gen/t_fpsetround test failures on Alpha
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-alpha-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 09 15:20:00 +0000 2025
>Originator: Jason Thorpe
>Release: NetBSD 10.1
>Organization:
RISCy Business
>Environment:
NetBSD avanti.ktnet 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/alpha/compile/GENERIC alpha
hw.model = AlphaStation 200 4/233
>Description:
avanti:thorpej 8$ ./t_fpsetround fpsetround_basic
t_fpsetround: WARNING: Running test cases without atf-run(1) is unsupported
t_fpsetround: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4)
Illegal instruction
avanti:thorpej 9$ ./t_fpsetround fpsetround_noftz
t_fpsetround: WARNING: Running test cases without atf-run(1) is unsupported
t_fpsetround: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4)
*** Check failed: /usr/src/tests/lib/libc/gen/t_fpsetround.c:174: machine runs flush-to-zero by default
*** Check failed: /usr/src/tests/lib/libc/gen/t_fpsetround.c:186: machine runs flush-to-zero after one fpsetround call
*** Check failed: /usr/src/tests/lib/libc/gen/t_fpsetround.c:192: machine runs flush-to-zero after two fpsetround calls
failed: 3 checks failed; see output for more details
avanti:thorpej 10$
This is almost certainly because this code doesn't properly integrate with the kernel's FP completion code, and fiddles with the FPCR directly.
>How-To-Repeat:
See above.
>Fix:
Consult the Alpha Architecture Reference Manual for all of the gory details.
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.