Open Quuxplusone opened 14 years ago
_Bug 6393 has been marked as a duplicate of this bug._
_Bug 11904 has been marked as a duplicate of this bug._
_Bug 23522 has been marked as a duplicate of this bug._
_Bug 23707 has been marked as a duplicate of this bug._
_Bug 24343 has been marked as a duplicate of this bug._
Floating-point instructions, such as add, sub, mul, and div, as well as math library functions in -fno-math-errno mode, are considered to have no side effects in LLVM. This is incorrect; they may set floating-point exception flags, and they may trap if the processor is configured to trap on floating-point exceptions.
As a consequence of this, these side effects may be reordered or eliminated by the optimizer and codegen.