[SSE] Fix for MUL v16i8 on pre-SSE41 targets (PR23369).
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 30 Apr 2015 08:23:16 +0000 (08:23 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 30 Apr 2015 08:23:16 +0000 (08:23 +0000)
commitc8ee30be4f645fa4ece2cb65a37e16cfb5b4bfd0
tree854aecfb70da0b891acbd71d81f3bc12a5320ee7
parent21092d8a7c9106db6f97c93484f8889d34fea742
[SSE] Fix for MUL v16i8 on pre-SSE41 targets (PR23369).

Sign extension of i8 to i16 was placing the unpacked bytes in the lower byte instead of the upper byte.

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