[AVX512] Add masking variant and intrinsics for valignd/q
authorAdam Nemet <anemet@apple.com>
Tue, 5 Aug 2014 17:23:04 +0000 (17:23 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 5 Aug 2014 17:23:04 +0000 (17:23 +0000)
commit545f89213d4527edd83695bb6b0017d84f59b8de
tree9f1ed2a458682e717d0e34da2b68f71e3ddd3573
parentb1f410a35b4157b43355bd64f3c0f76b0ab21ac3
[AVX512] Add masking variant and intrinsics for valignd/q

This is similar to what I did with the two-source permutation recently.  (It's
almost too similar so that we should consider generating the masking variants
with some tablegen help.)

Both encoding and intrinsic tests are added as well.  For the latter, this is
what the IR that the intrinsic test on the clang side generates.

Part of <rdar://problem/17688758>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214890 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsX86.td
lib/Target/X86/X86InstrAVX512.td
test/CodeGen/X86/avx512-intrinsics.ll
test/MC/X86/avx512-encodings.s