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 and
I think twitter.com/DanielMicay/st is a full explanation of everything being observed. It's 2 different things being noticed. llvm.org/docs/LangRef.h documents that LLVM does not support the floating point environment without using special intrinsics and this applies to Clang.
Quote Tweet
Replying to @lemire and @stephentyrone
You seem to be talking about 2 distinct issues: 1) GCC uses x87 floating point by default on x86 (pass -mfpmath=sse), unlike Clang 2) Neither Clang or GCC supports setting a non-default floating point rounding mode (which you'll notice more with optimization)
1
Show replies