[Bug target/35488] A incorrect result in a simple division, only in 32-bit gcc.

2020-08-01 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35488 Eric Gallager changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/35488] A incorrect result in a simple division, only in 32-bit gcc.

2020-07-29 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35488 Tom de Vries changed: What|Removed |Added CC||vries at gcc dot gnu.org --- Comment #11

[Bug target/35488] A incorrect result in a simple division, only in 32-bit gcc.

2008-03-07 Thread purnnam1 at naver dot com
--- Comment #10 from purnnam1 at naver dot com 2008-03-07 16:15 --- Thanks to Brian's kind comment, I have knew that the exact mechanism. In my understannding, the conclusion is as follows; 1. GCC 3.x doesn't generate any codes for 80-bit precision. the FPU h/w just uses the 80-bit

[Bug target/35488] A incorrect result in a simple division, only in 32-bit gcc.

2008-03-06 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-03-06 22:44 --- *** This bug has been marked as a duplicate of 323 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/35488] A incorrect result in a simple division, only in 32-bit gcc.

2008-03-06 Thread purnnam1 at naver dot com
--- Comment #2 from purnnam1 at naver dot com 2008-03-06 23:07 --- It's not simple floating point related error! I fully understand that the decimal number can't be converted to the exact floating point number. so, the result may be different from our expectation. This problem has no

[Bug target/35488] A incorrect result in a simple division, only in 32-bit gcc.

2008-03-06 Thread purnnam1 at naver dot com
--- Comment #3 from purnnam1 at naver dot com 2008-03-06 23:09 --- This problem is not kind of a duplicate of #323. -- purnnam1 at naver dot com changed: What|Removed |Added

[Bug target/35488] A incorrect result in a simple division, only in 32-bit gcc.

2008-03-06 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2008-03-06 23:14 --- The i?86 FPU computes values in 80bit precision by default. Starting with GCC 4.3 you can use -mpc64 to reduce its precision to 64bits thereby obtaining the valid IEEE-754 result. Or you can use -mfpmath=sse to

[Bug target/35488] A incorrect result in a simple division, only in 32-bit gcc.

2008-03-06 Thread purnnam1 at naver dot com
--- Comment #7 from purnnam1 at naver dot com 2008-03-07 00:05 --- Although I knew GCC use 80-bit format internally, I thought the result should be same in 80-bit format. Due to the very kind explanation about my problem, I can understand that the result can be changed because the

[Bug target/35488] A incorrect result in a simple division, only in 32-bit gcc.

2008-03-06 Thread purnnam1 at naver dot com
--- Comment #8 from purnnam1 at naver dot com 2008-03-07 00:37 --- Actually the 80-bit internal format will be better in converting a decimal number into the floating point number. In this point, the 80-bit internal format may be useful. --

[Bug target/35488] A incorrect result in a simple division, only in 32-bit gcc.

2008-03-06 Thread brian at dessent dot net
--- Comment #9 from brian at dessent dot net 2008-03-07 01:20 --- Subject: A incorrect result in a simple division, only in 32-bit gcc. Although I knew GCC use 80-bit format internally, I thought the result should be same in 80-bit format. No, it's not that gcc uses 80 bit or 64