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

           Summary: instcombine crash on i128
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


$ opt -instcombine -disable-output x.bc
opt: llvm/include/llvm/ADT/APInt.h:1051: int64_t llvm::APInt::getSExtValue()
const: Assertion `getMinSignedBits() <= 64 && "Too many bits for int64_t"'
failed.

This fires when building Fortran on x86-64 linux, and was introduced by:

r59403 | lattner | 2008-11-16 06:38:51 +0100 (Sun, 16 Nov 2008) | 2 lines

simplify a bunch more instcombines to use m_Specific etc.

Testcase:

define i128 @m(i1 %f) nounwind {
entry:
        %tmp = select i1 %f, i128 18446744073709551615, i128
9223372036854775807                ; <i128> [#uses=1]
        ret i128 %tmp
}


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to