summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/avx512dq-builtins.c
diff options
context:
space:
mode:
authorMichael Zuckerman <Michael.zuckerman@intel.com>2017-04-04 13:29:53 +0000
committerMichael Zuckerman <Michael.zuckerman@intel.com>2017-04-04 13:29:53 +0000
commit755a13db3d9f85e101746d6aa4898279a75e2ac4 (patch)
treedeb040225a105ac4ecacf776ab5a55227eda15f8 /clang/test/CodeGen/avx512dq-builtins.c
parentbee5739a7c76b4a9f993e83f95edc61614fab446 (diff)
downloadbcm5719-llvm-755a13db3d9f85e101746d6aa4898279a75e2ac4.tar.gz
bcm5719-llvm-755a13db3d9f85e101746d6aa4898279a75e2ac4.zip
[X86][Clang] Converting __mm{|256|512}_movm_epi{8|16|32|64} LLVMIR call into generic intrinsics.
This patch is a part two of two reviews, one for the clang and the other for LLVM. In this patch, I covered the clang side, by introducing the intrinsic to the front end. This is done by creating a generic replacement. Differential Revision: https://reviews.llvm.org/D31394a llvm-svn: 299431
Diffstat (limited to 'clang/test/CodeGen/avx512dq-builtins.c')
-rw-r--r--clang/test/CodeGen/avx512dq-builtins.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/CodeGen/avx512dq-builtins.c b/clang/test/CodeGen/avx512dq-builtins.c
index b4166ad7c40..55e47d6db82 100644
--- a/clang/test/CodeGen/avx512dq-builtins.c
+++ b/clang/test/CodeGen/avx512dq-builtins.c
@@ -929,13 +929,15 @@ __mmask16 test_mm512_movepi32_mask(__m512i __A) {
__m512i test_mm512_movm_epi32(__mmask16 __A) {
// CHECK-LABEL: @test_mm512_movm_epi32
- // CHECK: @llvm.x86.avx512.cvtmask2d.512
+ // CHECK: %2 = bitcast i16 %1 to <16 x i1>
+ // CHECK: %vpmovm2.i = sext <16 x i1> %2 to <16 x i32>
return _mm512_movm_epi32(__A);
}
__m512i test_mm512_movm_epi64(__mmask8 __A) {
// CHECK-LABEL: @test_mm512_movm_epi64
- // CHECK: @llvm.x86.avx512.cvtmask2q.512
+ // CHECK: %2 = bitcast i8 %1 to <8 x i1>
+ // CHECK: %vpmovm2.i = sext <8 x i1> %2 to <8 x i64>
return _mm512_movm_epi64(__A);
}
OpenPOWER on IntegriCloud