Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
isanbard opened this issue Apr 4, 2007 · 3 comments
Closed

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

isanbard opened this issue Apr 4, 2007 · 3 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead

Comments

@isanbard
Copy link
Contributor

isanbard commented Apr 4, 2007

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 .

@isanbard
Copy link
Contributor Author

isanbard commented Apr 4, 2007

assigned to @lattner

@lattner
Copy link
Collaborator

lattner commented Apr 9, 2007

you attached the wrong testcase, you mean <1 x i64>

@lattner
Copy link
Collaborator

lattner commented Apr 9, 2007

Fixed, testcase here: Transforms/InstCombine/2007-04-08-SingleEltVectorCrash.ll

Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070402/047044.html

Thanks,

-Chris

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead
Projects
None yet
Development

No branches or pull requests

2 participants