[LLVMbugs] [Bug 1090] NEW: CBE doesn't support exotic fcmp variants

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Jan 6 23:48:56 PST 2007


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

           Summary: CBE doesn't support exotic fcmp variants
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: C
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org


This is incorrect:

      case Instruction::FCmp:
        switch (CE->getPredicate()) {
          case FCmpInst::FCMP_ORD: 
          case FCmpInst::FCMP_UEQ: 
          case FCmpInst::FCMP_OEQ: Out << " == "; break;
          case FCmpInst::FCMP_UNO: 
          case FCmpInst::FCMP_UNE: 
          case FCmpInst::FCMP_ONE: Out << " != "; break;
          case FCmpInst::FCMP_OLT:
          case FCmpInst::FCMP_ULT: Out << " < "; break;
          case FCmpInst::FCMP_OLE:
          case FCmpInst::FCMP_ULE: Out << " <= "; break;
          case FCmpInst::FCMP_OGT: 
          case FCmpInst::FCMP_UGT: Out << " > "; break;
          case FCmpInst::FCMP_OGE:
          case FCmpInst::FCMP_UGE: Out << " >= "; break;
          default: assert(0 && "Illegal FCmp predicate");
        }

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list