diff options
Diffstat (limited to 'clang/test/CodeGen/avx512vldq-builtins.c')
| -rw-r--r-- | clang/test/CodeGen/avx512vldq-builtins.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/clang/test/CodeGen/avx512vldq-builtins.c b/clang/test/CodeGen/avx512vldq-builtins.c index 3ca4b2135ea..0812d682dc5 100644 --- a/clang/test/CodeGen/avx512vldq-builtins.c +++ b/clang/test/CodeGen/avx512vldq-builtins.c @@ -853,13 +853,16 @@ __m256 test_mm256_maskz_reduce_ps(__mmask8 __U, __m256 __A) { __mmask8 test_mm_movepi32_mask(__m128i __A) { // CHECK-LABEL: @test_mm_movepi32_mask - // CHECK: @llvm.x86.avx512.cvtd2mask.128 + // CHECK: [[CMP:%.*]] = icmp slt <4 x i32> %{{.*}}, zeroinitializer + // CHECK: [[SHUF:%.*]] = shufflevector <4 x i1> [[CMP]], <4 x i1> zeroinitializer, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> + // CHECK: bitcast <8 x i1> [[SHUF]] to i8 return _mm_movepi32_mask(__A); } __mmask8 test_mm256_movepi32_mask(__m256i __A) { // CHECK-LABEL: @test_mm256_movepi32_mask - // CHECK: @llvm.x86.avx512.cvtd2mask.256 + // CHECK: [[CMP:%.*]] = icmp slt <8 x i32> %{{.*}}, zeroinitializer + // CHECK: bitcast <8 x i1> [[CMP]] to i8 return _mm256_movepi32_mask(__A); } @@ -896,13 +899,17 @@ __m256i test_mm256_movm_epi64(__mmask8 __A) { __mmask8 test_mm_movepi64_mask(__m128i __A) { // CHECK-LABEL: @test_mm_movepi64_mask - // CHECK: @llvm.x86.avx512.cvtq2mask.128 + // CHECK: [[CMP:%.*]] = icmp slt <2 x i64> %{{.*}}, zeroinitializer + // CHECK: [[SHUF:%.*]] = shufflevector <2 x i1> [[CMP]], <2 x i1> zeroinitializer, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 2, i32 3, i32 2, i32 3> + // CHECK: bitcast <8 x i1> [[SHUF]] to i8 return _mm_movepi64_mask(__A); } __mmask8 test_mm256_movepi64_mask(__m256i __A) { // CHECK-LABEL: @test_mm256_movepi64_mask - // CHECK: @llvm.x86.avx512.cvtq2mask.256 + // CHECK: [[CMP:%.*]] = icmp slt <4 x i64> %{{.*}}, zeroinitializer + // CHECK: [[SHUF:%.*]] = shufflevector <4 x i1> [[CMP]], <4 x i1> zeroinitializer, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> + // CHECK: bitcast <8 x i1> [[SHUF]] to i8 return _mm256_movepi64_mask(__A); } |

