[LLVMbugs] [Bug 10180] New: InstCombineSelect incorrectly handles vector floats

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 23 11:52:40 PDT 2011


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

           Summary: InstCombineSelect incorrectly handles vector floats
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: micah.villmow at amd.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6764)
 --> (http://llvm.org/bugs/attachment.cgi?id=6764)
bitcode file that triggers asserts

Value *NegVal;  // Compute -Z
if (SI.getType()->isFloatingPointTy()) {
    NegVal = Builder->CreateFNeg(SubOp->getOperand(1));
} else {
    NegVal = Builder->CreateNeg(SubOp->getOperand(1));
}

If SI.getType() returns a VectorType and the vector type is a float, the
initial condition fails, creating integer subtract with floating point
arguments in release builds.

-- 
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