[PATCH] D20101: [Clang][AVX512] completing missing intrinsics [pandnd].
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 18 08:32:07 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL269939: [Clang][AVX512] completing missing intrinsics [pandnd]. (authored by mzuckerm).
Changed prior to commit:
http://reviews.llvm.org/D20101?vs=57598&id=57634#toc
Repository:
rL LLVM
http://reviews.llvm.org/D20101
Files:
cfe/trunk/lib/Headers/avx512fintrin.h
cfe/trunk/test/CodeGen/avx512f-builtins.c
Index: cfe/trunk/test/CodeGen/avx512f-builtins.c
===================================================================
--- cfe/trunk/test/CodeGen/avx512f-builtins.c
+++ cfe/trunk/test/CodeGen/avx512f-builtins.c
@@ -1451,6 +1451,17 @@
return _mm512_mask_andnot_epi32(__src,__k,__A,__B);
}
+__m512i test_mm512_andnot_si512(__m512i __A, __m512i __B)
+{
+ //CHECK-LABLE: @test_mm512_andnot_si512
+ //CHECK: load {{.*}}%__A.addr.i, align 64
+ //CHECK: %neg.i = xor{{.*}}, <i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1>
+ //CHECK: load {{.*}}%__B.addr.i, align 64
+ //CHECK: and <8 x i64> %neg.i,{{.*}}
+
+ return _mm512_andnot_si512(__A, __B);
+}
+
__m512i test_mm512_andnot_epi32(__m512i __A, __m512i __B) {
//CHECK-LABEL: @test_mm512_andnot_epi32
//CHECK: @llvm.x86.avx512.mask.pandn.d.512
Index: cfe/trunk/lib/Headers/avx512fintrin.h
===================================================================
--- cfe/trunk/lib/Headers/avx512fintrin.h
+++ cfe/trunk/lib/Headers/avx512fintrin.h
@@ -418,6 +418,12 @@
}
static __inline__ __m512i __DEFAULT_FN_ATTRS
+_mm512_andnot_si512 (__m512i __A, __m512i __B)
+{
+ return (__m512i)(~(__A) & __B);
+}
+
+static __inline__ __m512i __DEFAULT_FN_ATTRS
_mm512_andnot_epi32 (__m512i __A, __m512i __B)
{
return (__m512i) __builtin_ia32_pandnd512_mask ((__v16si) __A,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20101.57634.patch
Type: text/x-patch
Size: 1345 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160518/04094e65/attachment.bin>
More information about the llvm-commits
mailing list