[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)
commitfd2161b710805dd84f1a4874660e5aefc84812a2
treeb585f9a7c13753a70bd7a772d7bdb51fd0029474
parent4688a2e5cbd722584b063acb31136e8dae3276d3
[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>

llvm-svn: 214890
llvm/include/llvm/IR/IntrinsicsX86.td
llvm/lib/Target/X86/X86InstrAVX512.td
llvm/test/CodeGen/X86/avx512-intrinsics.ll
llvm/test/MC/X86/avx512-encodings.s