GNU GCC does not round floating-point divisions to the nearest value
Conversation
Replying to
Set -mfpmath=sse or avoid the legacy architecture. The only difference with Clang is that the default is SSE. If you pass -mfpmath=387 -mno-sse, Clang will act the same way as GCC does by default. So, either avoid the legacy architecture or configure it the way you want instead.
1
1
Replying to
Ok. I added -mfpmath=sse (see my script on GitHub). It does ***not*** help. See screenshot.
cc
2
1
It works fine here. Which GCC version are you using? I'm testing with GCC 10.1.0 and cannot reproduce your results.
Show replies


