Skip to content

instcombine crash on i128 #3607

@llvmbot

Description

@llvmbot
Bugzilla Link 3235
Resolution FIXED
Resolved on Jan 05, 2009 17:46
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor
CC @asl,@lattner,@efriedma-quic,@nlewycky

Extended Description

$ 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 ; [#uses=1]
ret i128 %tmp
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions