[PATCH] D20101: [Clang][AVX512] completing missing intrinsics [pandnd].
michael zuckerman via llvm-commits
llvm-commits at lists.llvm.org
Wed May 18 05:22:18 PDT 2016
m_zuckerman updated this revision to Diff 57598.
http://reviews.llvm.org/D20101
Files:
lib/Headers/avx512fintrin.h
test/CodeGen/avx512f-builtins.c
Index: test/CodeGen/avx512f-builtins.c
===================================================================
--- test/CodeGen/avx512f-builtins.c
+++ test/CodeGen/avx512f-builtins.c
@@ -1258,6 +1258,14 @@
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: %neg.i = xor <8 x i64> %__A, <i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1, i64 -1>
+ //CHECK: %and.i = and <8 x i64> %__B, %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: lib/Headers/avx512fintrin.h
===================================================================
--- lib/Headers/avx512fintrin.h
+++ lib/Headers/avx512fintrin.h
@@ -393,6 +393,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.57598.patch
Type: text/x-patch
Size: 1238 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160518/2a6fe67b/attachment.bin>
More information about the llvm-commits
mailing list