NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-m68k/59616 (m68k softfloat nans and infs have to be preserved when changing sizes)



Reference output for the test case:


gcc (nb1 20250721) 12.5.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

NetBSD princess 11.99.1 NetBSD 11.99.1 (WSFBPWR) #0: Fri Aug 22 17:53:35 AEST 2025  build@microrusty:/home/build/mac-new-sf/sys/arch/mac68k/compile/WSFBPWR mac68k
gcc -msoft-float -o /tmp/minus.o ./minus.c
failed output:
MINUS  3.900000e-10: 0.000000e+00 -4.513169e-18 -4.513169e-18
PLUS 3.900000e-10: 7.800000e-10 7.800000e-10 7.800000e-10
OK 
MINUS  inf: 0.000000e+00 8.988466e+307 inf
PLUS inf: 8.988466e+307 8.988466e+307 inf
OK 
MINUS  nan: 0.000000e+00 -1.797693e+308 nan
PLUS nan: -8.988466e+307 -1.797693e+308 nan
OK 
MINUS  5.200000e+03: 0.000000e+00 0.000000e+00 0.000000e+00
PLUS 5.200000e+03: 1.040000e+04 1.040000e+04 1.040000e+04
OK OK OK

expected output:
MINUS  3.900000e-10: 0.000000e+00 -4.513169e-18 -4.513169e-18
PLUS 3.900000e-10: 7.800000e-10 7.800000e-10 7.800000e-10
OK 
MINUS  inf: nan nan nan
PLUS inf: inf inf inf

MINUS  nan: nan nan nan
PLUS nan: nan nan nan

MINUS  5.200000e+03: 0.000000e+00 0.000000e+00 0.000000e+00
PLUS 5.200000e+03: 1.040000e+04 1.040000e+04 1.040000e+04
OK OK OK


Home | Main Index | Thread Index | Old Index