[LLVMbugs] [Bug 1610] New: Incorrect translation of __builtin_isgreater and friends

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Aug 15 12:21:58 PDT 2007


           Summary: Incorrect translation of __builtin_isgreater and friends
           Product: tools
           Version: 2.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: djg at cray.com
                CC: llvmbugs at cs.uiuc.edu

I typed this code into the online demo:

int isgt(double d, double e)
{ return __builtin_isgreater(d, e); }

int oper(double d, double e)
{ return d > e; }

In the output, the two functions had identical bodies. The __builtin_isgreater
function should expand to code that doesn't raise an exception if the operands
are unordered (eg. because one of them is a NaN).

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