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)
commit933cccf3fa81a928a026a88483d30d202c6b048e
tree4f86e22c508744a93193b6a81e6ca4ecfa92991d
parentee0c4c16734a6731acc2a429da49709b36b585c4
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.

llvm-svn: 213826
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/sse41.ll