Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

floating-point operations have side effects #6525

Open Quuxplusone opened 14 years ago

Quuxplusone commented 14 years ago
Bugzilla Link PR6050
Status NEW
Importance P normal
Reported by Dan Gohman (llvm@sunfishcode.online)
Reported on 2010-01-15 15:52:00 -0800
Last modified on 2020-04-02 11:27:10 -0700
Version unspecified
Hardware All All
CC andrew.kaylor@intel.com, chfast@gmail.com, clattner@nondot.org, d.grellscheid+llvm@gmail.com, dimitry@andric.com, emaste@freebsd.org, jjones@transcella.com, llvm-bugs@lists.llvm.org, llvm@henning-thielemann.de, mick@nag.co.uk, nicholas@mxc.ca, nlewycky@google.com, paumard@users.sourceforge.net, spatel+llvm@rotateright.com, vincent-llvm@vinc17.net, wendling@apple.com, yuanfang.chen@sony.com, zvirack@gmail.com
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also PR18673, PR24343, PR24807, PR20358, PR17854

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.

Quuxplusone commented 14 years ago

_Bug 6393 has been marked as a duplicate of this bug._

Quuxplusone commented 12 years ago

_Bug 11904 has been marked as a duplicate of this bug._

Quuxplusone commented 9 years ago

_Bug 23522 has been marked as a duplicate of this bug._

Quuxplusone commented 9 years ago

_Bug 23707 has been marked as a duplicate of this bug._

Quuxplusone commented 9 years ago

_Bug 24343 has been marked as a duplicate of this bug._