Fixed PR20411 - bug in getINSERTPS()
authorFilipe Cabecinhas <me@filcab.net>
Thu, 24 Jul 2014 01:28:21 +0000 (01:28 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Thu, 24 Jul 2014 01:28:21 +0000 (01:28 +0000)
commitd28cfd150b9b3bf84a0c3814b115890c2a986c29
tree9be324c54c223e6561edb6a8d9d6885acd06fbe3
parent5092384bd31ea8649094021ffd169af849e7f324
Fixed PR20411 - bug in getINSERTPS()

When we had a vector_shuffle where we had an input from each vector, we
could miscompile it because we were assuming the input from V2 wouldn't
be moved from where it was on the vector.

Added a test case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213826 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/sse41.ll