Author: rksimon Date: Fri May 20 10:49:17 2016 New Revision: 270227 URL: http://llvm.org/viewvc/llvm-project?rev=270227&view=rev Log: [X86][AVX] Added _mm256_testc_si256/_mm256_testnzc_si256/_mm256_testz_si256 tests
Modified: cfe/trunk/test/CodeGen/avx-builtins.c Modified: cfe/trunk/test/CodeGen/avx-builtins.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/avx-builtins.c?rev=270227&r1=270226&r2=270227&view=diff ============================================================================== --- cfe/trunk/test/CodeGen/avx-builtins.c (original) +++ cfe/trunk/test/CodeGen/avx-builtins.c Fri May 20 10:49:17 2016 @@ -1253,6 +1253,12 @@ int test_mm256_testc_ps(__m256 A, __m256 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, __m2 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 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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits