Skip to content

instcombine crash on extractelement from <1 x i64> type #1676

@isanbard

Description

@isanbard
Bugzilla Link 1304
Resolution FIXED
Resolved on Feb 22, 2010 12:47
Version trunk
OS All

Extended Description

For this program:

$ cat b.ll
define i64 @​bork(<2 x i64> %vec) {
entry:
%tmp = extractelement <2 x i64> %vec, i32 0
ret i64 %tmp
}

I get this abort:

$ llvm-as -f b.ll
$ opt -std-compile-opts -o a.bc -f b.bc
/Users/wendling/llvm/llvm.src/lib/Transforms/Scalar/InstructionCombining.cpp:1399: failed assertion
`DemandedElts != EltMask && (DemandedElts & ~EltMask) == 0 && "Invalid DemandedElts!"'
Abort trap

If it's more than 1 element in the vector, you get the failure reported in #1675 .

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillacompile-failUse [accepts-invalid] and [rejects-valid] instead

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions