Skip to content
Tcl Source Code Artifact [fcfb958476]
Login

Artifact [fcfb958476]

Artifact fcfb9584761d96833db5a06648e2bd872c4b0064d0105bc4c77f61f3db30c258:

Ticket change [fcfb958476] - Ticket [bf029ced86b614a4|bf029ced86] <i>binary.test 40.3 signed NaN fails on IRIX/MIPS machines</i> status still Open with 4 other changes by anonymous on 2026-10-13 09:22:23.
D 2026-10-13T09:22:23.885
J icomment binary-40.3\sfails\sthe\ssame\sway\son\sRISC-V\s(riscv64,\sSiFive\sU74\son\sa\sStarFive\sJH7110),\swith\sTcl\s9.1.0\s&\s8.6.18\sbuilt\sby\sthe\sYocto\sProject:\r\n\r\n\s\s====\sbinary-40.3\sScanNumber:\sNaN\sFAILED\r\n\s\s----\sResult\swas:\r\n\s\s1\sNaN\r\n\s\s----\sResult\sshould\shave\sbeen\s(glob\smatching):\r\n\s\s1\s-NaN*\r\n\r\nOn\sRISC-V\sthe\ssign\sloss\sis\srequired\sby\sthe\sISA\srather\sthan\svarying\sby\simplementation:\sunless\san\sinstruction\ssays\sotherwise,\sany\sfloating-point\soperation\sthat\sproduces\sa\sNaN\sreturns\sthe\scanonical\sNaN,\swhich\sis\spositive.\r\nScanNumber\spasses\sthe\sfloat\sto\sTcl_NewDoubleObj(),\s&\sGCC\scompiles\sthat\sfloat-to-double\swidening\sto\sfcvt.d.s,\sso\sa\snegative\ssingle-precision\sNaN\salways\sbecomes\sa\spositive\sdouble\sNaN.\sA\sstandalone\stest\sof\sthe\ssame\swidening\s(0xffffffff\sin,\s0x7ff8000000000000\sout)\sconfirms\sit\sunder\sqemu-riscv64.\r\nIEEE\s754\sdoes\snot\sdefine\sthe\ssign\sof\sa\sNaN\sproduced\sby\sa\sconversion,\sso\sI\sagree\swith\sdropping\sthe\ssign\sfrom\sthe\sexpected\sresult,\sor\saccepting\sboth.
J login anonymous
J mimetype text/plain
J username OOHehir
K bf029ced86b614a4c29dc15b0ddc2b222e489004
U anonymous
Z 9798ce151e794aa108bf3bcf3ba1d233