Overview
| Artifact ID: | c998b4512f21c1145f8e79e6148f347393c1e69e |
|---|---|
| Ticket: | 2143288fffffffffffffffffffffffffffffffff
isqrt 'make check' failure |
| User & Date: | mboffey2 on 2008-10-04 05:23:06 |
Changes
- icomment:
I see that this issue has come up before - there are several closed tickets that look like exactly the same issue (2030480 1609936 (which in turn mentions 1735583)). Compiling without optimisation (or debugging prints) gets expr.test to pass, however there are still values that fail, for example (1<<56) + (1<<5) - malc@piglet:~/src/tcl/tcl8.6a2/unix> ./tcltest ../tests/expr.test expr.test: Total 1749 Passed 1743 Skipped 6 Failed 0 Number of tests skipped for each constraint: 5 !ieeeFloatingPoint 1 longIs64bit malc@piglet:~/src/tcl/tcl8.6a2/unix> ./tcltest ~/isqrt.tcl d=100000000000020 q=10aaaaab qq=115c71c7ce38e39 malc@piglet:~/src/tcl/tcl8.6a2/unix> tclsh8.6 ~/isqrt.tcl d=100000000000020 q=10000000 qq=100000000000000 (where ./tcltest is unmodified compiled with -O0, tclsh8.6 has the above path applied). isqrt.tcl - set d [expr (1<<56) + (1<<5)] set q [expr isqrt($d)] set qq [expr $q*$q] puts [format "d=%llx q=%llx qq=%llx" $d $q $qq] - login: "mboffey2"
- mimetype: "text/plain"
- username: "mboffey2"