From 2ebf680b8990b61e2be7ea0f7e4ebb815df448a0 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 20 May 2016 15:49:17 +0000 Subject: [PATCH] [X86][AVX] Added _mm256_testc_si256/_mm256_testnzc_si256/_mm256_testz_si256 tests git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270227 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/avx-builtins.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/CodeGen/avx-builtins.c b/test/CodeGen/avx-builtins.c index f55ca540dd..23bc654480 100644 --- a/test/CodeGen/avx-builtins.c +++ b/test/CodeGen/avx-builtins.c @@ -1253,6 +1253,12 @@ int test_mm256_testc_ps(__m256 A, __m256 B) { return _mm256_testc_ps(A, B); } +int test_mm256_testc_si256(__m256 A, __m256 B) { + // CHECK-LABEL: test_mm256_testc_si256 + // CHECK: call i32 @llvm.x86.avx.ptestc.256(<4 x i64> %{{.*}}, <4 x i64> %{{.*}}) + return _mm256_testc_si256(A, B); +} + int test_mm_testnzc_pd(__m128d A, __m128d B) { // CHECK-LABEL: test_mm_testnzc_pd // CHECK: call i32 @llvm.x86.avx.vtestnzc.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}) @@ -1277,6 +1283,12 @@ int test_mm256_testnzc_ps(__m256 A, __m256 B) { return _mm256_testnzc_ps(A, B); } +int test_mm256_testnzc_si256(__m256 A, __m256 B) { + // CHECK-LABEL: test_mm256_testnzc_si256 + // CHECK: call i32 @llvm.x86.avx.ptestnzc.256(<4 x i64> %{{.*}}, <4 x i64> %{{.*}}) + return _mm256_testnzc_si256(A, B); +} + int test_mm_testz_pd(__m128d A, __m128d B) { // CHECK-LABEL: test_mm_testz_pd // CHECK: call i32 @llvm.x86.avx.vtestz.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}) @@ -1301,6 +1313,12 @@ int test_mm256_testz_ps(__m256 A, __m256 B) { return _mm256_testz_ps(A, B); } +int test_mm256_testz_si256(__m256 A, __m256 B) { + // CHECK-LABEL: test_mm256_testz_si256 + // CHECK: call i32 @llvm.x86.avx.ptestz.256(<4 x i64> %{{.*}}, <4 x i64> %{{.*}}) + return _mm256_testz_si256(A, B); +} + __m256 test_mm256_undefined_ps() { // CHECK-LABEL: @test_mm256_undefined_ps // CHECK: ret <8 x float> undef -- 2.40.0