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.
Details
Details
- Reviewers
zvi spatel craig.topper - Commits
- rGf49217745b76: Merging r323190: --------------------------------------------------------------…
rG8ea1a0c690ec: [X86][SSE] LowerBUILD_VECTORAsVariablePermute - fix PSHUFB source/index operand…
rL323335: Merging r323190:
rL323190: [X86][SSE] LowerBUILD_VECTORAsVariablePermute - fix PSHUFB source/index operand…
Diff Detail
Diff Detail
- Repository
- rL LLVM