diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-09-03 19:19:49 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-09-03 19:19:49 +0000 |
commit | 9933b39786ee646c3144099d59896b11911c2d82 (patch) | |
tree | f24394daf6eb2f7709563a9e3d52a4e79077be97 /lib/Headers/avx512dqintrin.h | |
parent | f85f5b3018877680a72bcd6e38258e45dbdd57ce (diff) | |
download | clang-9933b39786ee646c3144099d59896b11911c2d82.tar.gz |
[AVX-512] Remove masked integer mullo builtins and replace with native IR.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Headers/avx512dqintrin.h')
-rw-r--r-- | lib/Headers/avx512dqintrin.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/Headers/avx512dqintrin.h b/lib/Headers/avx512dqintrin.h index 2189e9066d..a24a91cf7c 100644 --- a/lib/Headers/avx512dqintrin.h +++ b/lib/Headers/avx512dqintrin.h @@ -37,20 +37,17 @@ _mm512_mullo_epi64 (__m512i __A, __m512i __B) { } static __inline__ __m512i __DEFAULT_FN_ATTRS -_mm512_mask_mullo_epi64 (__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i) __builtin_ia32_pmullq512_mask ((__v8di) __A, - (__v8di) __B, - (__v8di) __W, - (__mmask8) __U); +_mm512_mask_mullo_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { + return (__m512i)__builtin_ia32_selectq_512((__mmask8)__U, + (__v8di)_mm512_mullo_epi64(__A, __B), + (__v8di)__W); } static __inline__ __m512i __DEFAULT_FN_ATTRS -_mm512_maskz_mullo_epi64 (__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i) __builtin_ia32_pmullq512_mask ((__v8di) __A, - (__v8di) __B, - (__v8di) - _mm512_setzero_si512 (), - (__mmask8) __U); +_mm512_maskz_mullo_epi64(__mmask8 __U, __m512i __A, __m512i __B) { + return (__m512i)__builtin_ia32_selectq_512((__mmask8)__U, + (__v8di)_mm512_mullo_epi64(__A, __B), + (__v8di)_mm512_setzero_si512()); } static __inline__ __m512d __DEFAULT_FN_ATTRS |