New user self-registration is disabled due to spam. For an account please email bugs-admin@lists.llvm.org with your e-mail address and full name.

Bug 6050 - floating-point operations have side effects
Summary: floating-point operations have side effects
Status: NEW
Alias: None
Product: new-bugs
Classification: Unclassified
Component: new bugs (show other bugs)
Version: unspecified
Hardware: All All
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords: missing-feature
: 6393 11904 23522 23707 24343 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-15 15:52 PST by Dan Gohman
Modified: 2019-01-10 06:10 PST (History)
16 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Gohman 2010-01-15 15:52:00 PST
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.
Comment 1 Dan Gohman 2010-02-25 15:13:23 PST
*** Bug 6393 has been marked as a duplicate of this bug. ***
Comment 2 Eli Friedman 2012-02-02 05:56:36 PST
*** Bug 11904 has been marked as a duplicate of this bug. ***
Comment 3 Michael Kuperstein 2015-05-14 06:29:16 PDT
*** Bug 23522 has been marked as a duplicate of this bug. ***
Comment 4 David Majnemer 2015-08-03 14:57:32 PDT
*** Bug 23707 has been marked as a duplicate of this bug. ***
Comment 5 Dimitry Andric 2015-09-24 04:35:54 PDT
*** Bug 24343 has been marked as a duplicate of this bug. ***