[PATCH] D20228: Fix types for AVX-512 pshufd intrinsics.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri May 13 00:02:49 PDT 2016


craig.topper created this revision.
craig.topper added reviewers: delena, m_zuckerman.
craig.topper added a subscriber: llvm-commits.

The immediate for the final instruction is the second argument. It should be 32-bits to match the software spec then truncated to 8-bits to match the instruction format. The mask is the last argument which needs to be 16-bits for the 512-bit instruction.

Also put the tests for 128-bit and 256-bit in the AVX512VL file instead of the AVX512BW+VL file since this is not a BW instruction.

http://reviews.llvm.org/D20228

Files:
  include/llvm/IR/IntrinsicsX86.td
  lib/Target/X86/X86IntrinsicsInfo.h
  test/CodeGen/X86/avx512-intrinsics.ll
  test/CodeGen/X86/avx512bwvl-intrinsics.ll
  test/CodeGen/X86/avx512vl-intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20228.57134.patch
Type: text/x-patch
Size: 8649 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160513/94f5e02d/attachment.bin>


More information about the llvm-commits mailing list