NetBSD-Bugs archive

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

Re: port-mips/57680: printf("%.1f") shows wrong resultsonR3000mipseb



The following reply was made to PR port-mips/57680; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: riastradh%NetBSD.org@localhost
Cc: gnats-bugs%netbsd.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-mips/57680: printf("%.1f") shows wrong resultsonR3000mipseb
Date: Tue, 7 Nov 2023 00:45:43 +0900

 > Can you please run the attached program on your R3000 system and share
 > the output?
 
 Here it is:
 ---
 news3470-% env LD_LIBRARY_PATH=libc-9.3 ./test-57680
 FP_RN=0    FE_TONEAREST=0
 FP_RZ=1    FE_TOWARDZERO=1
 FP_RP=2    FE_UPWARD=2
 FP_RM=3    FE_DOWNWARD=3
  tonearest: FLT_ROUNDS=1 fpgetround=0    fegetround=0    z=-0x1p+0 w=0x1.0000000000002p+0
 towardzero: FLT_ROUNDS=0 fpgetround=1    fegetround=1    z=-0x1.fffffffffffffp-1 w=0x1.0000000000001p+0
     upward: FLT_ROUNDS=2 fpgetround=2    fegetround=2    z=-0x1.fffffffffffffp-1 w=0x1.0000000000002p+0
   downward: FLT_ROUNDS=3 fpgetround=3    fegetround=3    z=-0x1p+0 w=0x1.0000000000001p+0
  tonearest: FLT_ROUNDS=1 fpgetround=0    fegetround=0    z=-0x1p+0 w=0x1.0000000000002p+0
 towardzero: FLT_ROUNDS=0 fpgetround=1    fegetround=1    z=-0x1.fffffffffffffp-1 w=0x1.0000000000001p+0
     upward: FLT_ROUNDS=2 fpgetround=2    fegetround=2    z=-0x1.fffffffffffffp-1 w=0x1.0000000000002p+0
   downward: FLT_ROUNDS=3 fpgetround=3    fegetround=3    z=-0x1p+0 w=0x1.0000000000001p+0
 news3470-% 
 ---
 
 (Expected?)
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index