]> granicus.if.org Git - llvm/commit
Merging r323190:
authorHans Wennborg <hans@hanshq.net>
Wed, 24 Jan 2018 15:38:38 +0000 (15:38 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 24 Jan 2018 15:38:38 +0000 (15:38 +0000)
commit093b1726dc65511236f273cac248c1c1587cce1a
tree4e0ac7c478f8c740ca3712e7e4838af9986637e0
parentd8c108c8d0c90508261ec8c7688993c0f23583f5
Merging r323190:
------------------------------------------------------------------------
r323190 | rksimon | 2018-01-23 12:39:06 +0100 (Tue, 23 Jan 2018) | 5 lines

[X86][SSE] LowerBUILD_VECTORAsVariablePermute - fix PSHUFB source/index operand ordering

As detailed in rL317463, PSHUFB (like most variable shuffle instructions) uses Op[0] for the source vector and Op[1] for the shuffle index vector, VPERMV works in reverse which is probably where the confusion comes from.

Differential Revision: https://reviews.llvm.org/D42380
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_60@323335 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/var-permute-128.ll