summaryrefslogtreecommitdiff
path: root/test/CodeGen/avx512vl-builtins.c
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-10-22 21:24:38 +0000
committerCraig Topper <craig.topper@gmail.com>2016-10-22 21:24:38 +0000
commit4501a61d533fa6748517f9773d5fdc53bd78b83b (patch)
tree728d07bbcc44b4e81aa9906f05fca00620e4fedd /test/CodeGen/avx512vl-builtins.c
parent9895e4d3f64d61d0491a7a75c3429bbea351440f (diff)
downloadclang-4501a61d533fa6748517f9773d5fdc53bd78b83b.tar.gz
[AVX-512] Remove builtins for 128/256-bit pabsb/pabsw. We can use a select and the older non-masked versions instead.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/avx512vl-builtins.c')
-rw-r--r--test/CodeGen/avx512vl-builtins.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/CodeGen/avx512vl-builtins.c b/test/CodeGen/avx512vl-builtins.c
index 5150995468..b7e1856b4e 100644
--- a/test/CodeGen/avx512vl-builtins.c
+++ b/test/CodeGen/avx512vl-builtins.c
@@ -2465,22 +2465,26 @@ __m256 test_mm256_maskz_mul_ps(__mmask8 __U, __m256 __A, __m256 __B) {
}
__m128i test_mm_mask_abs_epi32(__m128i __W, __mmask8 __U, __m128i __A) {
// CHECK-LABEL: @test_mm_mask_abs_epi32
- // CHECK: @llvm.x86.avx512.mask.pabs.d.128
+ // CHECK: @llvm.x86.ssse3.pabs.d.128
+ // CHECK: select <4 x i1> %{{.*}}, <4 x i32> %{{.*}}, <4 x i32> %{{.*}}
return _mm_mask_abs_epi32(__W,__U,__A);
}
__m128i test_mm_maskz_abs_epi32(__mmask8 __U, __m128i __A) {
// CHECK-LABEL: @test_mm_maskz_abs_epi32
- // CHECK: @llvm.x86.avx512.mask.pabs.d.128
+ // CHECK: @llvm.x86.ssse3.pabs.d.128
+ // CHECK: select <4 x i1> %{{.*}}, <4 x i32> %{{.*}}, <4 x i32> %{{.*}}
return _mm_maskz_abs_epi32(__U,__A);
}
__m256i test_mm256_mask_abs_epi32(__m256i __W, __mmask8 __U, __m256i __A) {
// CHECK-LABEL: @test_mm256_mask_abs_epi32
- // CHECK: @llvm.x86.avx512.mask.pabs.d.256
+ // CHECK: @llvm.x86.avx2.pabs.d
+ // CHECK: select <8 x i1> %{{.*}}, <8 x i32> %{{.*}}, <8 x i32> %{{.*}}
return _mm256_mask_abs_epi32(__W,__U,__A);
}
__m256i test_mm256_maskz_abs_epi32(__mmask8 __U, __m256i __A) {
// CHECK-LABEL: @test_mm256_maskz_abs_epi32
- // CHECK: @llvm.x86.avx512.mask.pabs.d.256
+ // CHECK: @llvm.x86.avx2.pabs.d
+ // CHECK: select <8 x i1> %{{.*}}, <8 x i32> %{{.*}}, <8 x i32> %{{.*}}
return _mm256_maskz_abs_epi32(__U,__A);
}
__m128i test_mm_abs_epi64(__m128i __A) {