[PATCH] D29196: [X86 Codegen] PACKUS can't be used for unsigned saturation

Elena Demikhovsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 26 13:07:30 PST 2017


delena created this revision.
Herald added a subscriber: igorb.

PACKUSWB converts Signed word to Unsigned byte, (the same about DW) and it can't be used for umin+truncate pattern.
AVX-512 VPMOVUS* instructions fit the pattern since they convert Unsigned to Unsigned.

See https://llvm.org/bugs/show_bug.cgi?id=31773


Repository:
  rL LLVM

https://reviews.llvm.org/D29196

Files:
  ../lib/Target/X86/X86ISelLowering.cpp
  ../test/CodeGen/X86/avx-trunc.ll
  ../test/CodeGen/X86/avx512-trunc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29196.85949.patch
Type: text/x-patch
Size: 4151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170126/4fd84ff7/attachment.bin>


More information about the llvm-commits mailing list