[PATCH] D47822: [X86][SSE] Support v8i16/v16i16 rotations

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 6 06:08:04 PDT 2018


RKSimon created this revision.
RKSimon added reviewers: andreadb, spatel, craig.topper, efriedma.

Extension to https://reviews.llvm.org/D46954 (PR37426), this patch adds support for v8i16/v16i16 rotations in a similar manner - the conversion of the shift/rotate amount to a multiplication factor and the use of PMULLW to shift left and PMULHUW (ISD::MULHU) to shift the wrapped bits back around to be ORd together.


Repository:
  rL LLVM

https://reviews.llvm.org/D47822

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/vector-rotate-128.ll
  test/CodeGen/X86/vector-rotate-256.ll
  test/CodeGen/X86/vector-rotate-512.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47822.150120.patch
Type: text/x-patch
Size: 75053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180606/5529a7c2/attachment-0001.bin>


More information about the llvm-commits mailing list