NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-m68k/59616: m68k softfloat nans and infs have to be preserved when changing sizes
>Number: 59616
>Category: port-m68k
>Synopsis: m68k softfloat nans and infs have to be preserved when changing sizes
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-m68k-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 29 16:10:00 +0000 2025
>Originator: Nat Sloss
>Release: NetBSD-11.99.1
>Organization:
>Environment:
NetBSD princess 11.99.1 NetBSD 11.99.1 (WSFBPWR) #171: Sat Aug 23 22:27:20 AEST 2025 build@microrusty:/usr/src/sys/arch/mac68k/compile/WSFBPWR mac68k
>Description:
m68k softfloat implementation for gcc uses fpgnulib.c for gcc.
This does not expand NaNs and INFs when changing sizes.
Consider the following:
float test = 0.0/0.0;
double newtest = test;
printf("%f %f\n",test,newtest);
and the results yielded are - nan -6(big number).
it should be nan nan.
Nan and infs are not numbers so they should be given there equivalent values when changing sizes.
>How-To-Repeat:
run /usr/tests/lib/libm tests
>Fix:
Apply the patch in the followup email.
Best regards,
Nat
Home |
Main Index |
Thread Index |
Old Index