[LLVMbugs] [Bug 6050] New: floating-point operations have side effects

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jan 15 13:52:00 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6050

           Summary: floating-point operations have side effects
           Product: new-bugs
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: gohman at apple.com
                CC: llvmbugs at cs.uiuc.edu


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.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list