[LLVMbugs] [Bug 3316] New: Constant folding for 'frem' is flaky

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jan 12 09:53:32 PST 2009


           Summary: Constant folding for 'frem' is flaky
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: markleone at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Constant folding for 'frem' seems flaky for certain values.  For example, "frem
float 0.1, 1.0" returns -0.9 when constant folded:

define float @test1() {
    %y = frem float 0x3FB99999A0000000, 1.0
    ret float %y

@x = global float 0x3FB99999A0000000    ; float 0.1

define float @test2() {
    %x = load float* @x
    %y = frem float %x, 1.0
    ret float %y

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