diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-12-27 03:46:16 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-12-27 03:46:16 +0000 |
commit | ece2a94816301a0cc9570a6aae9748d8971ca2bd (patch) | |
tree | 8ab23c54e88669ab3d0048f52df211b1f5f75b62 /lib | |
parent | efb992576f8dd54982b6f114def1c2c61727ea8a (diff) | |
download | clang-ece2a94816301a0cc9570a6aae9748d8971ca2bd.tar.gz |
[AVX-512] Replace masked 512-bit pmuldq and pmuludq builtins with the newly added unmasked versions and selects.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Headers/avx512fintrin.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Headers/avx512fintrin.h b/lib/Headers/avx512fintrin.h index 30ebfc0430..e6a7217c89 100644 --- a/lib/Headers/avx512fintrin.h +++ b/lib/Headers/avx512fintrin.h @@ -1422,7 +1422,7 @@ _mm512_mul_epi32(__m512i __X, __m512i __Y) static __inline __m512i __DEFAULT_FN_ATTRS _mm512_mask_mul_epi32(__m512i __W, __mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_selectq_512((__mmask8)__U, + return (__m512i)__builtin_ia32_selectq_512((__mmask8)__M, (__v8di)_mm512_mul_epi32(__X, __Y), (__v8di)__W); } @@ -1430,7 +1430,7 @@ _mm512_mask_mul_epi32(__m512i __W, __mmask8 __M, __m512i __X, __m512i __Y) static __inline __m512i __DEFAULT_FN_ATTRS _mm512_maskz_mul_epi32(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_selectq_512((__mmask8)__U, + return (__m512i)__builtin_ia32_selectq_512((__mmask8)__M, (__v8di)_mm512_mul_epi32(__X, __Y), (__v8di)_mm512_setzero_si512 ()); } @@ -1444,7 +1444,7 @@ _mm512_mul_epu32(__m512i __X, __m512i __Y) static __inline __m512i __DEFAULT_FN_ATTRS _mm512_mask_mul_epu32(__m512i __W, __mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_selectq_512((__mmask8)__U, + return (__m512i)__builtin_ia32_selectq_512((__mmask8)__M, (__v8di)_mm512_mul_epu32(__X, __Y), (__v8di)__W); } @@ -1452,7 +1452,7 @@ _mm512_mask_mul_epu32(__m512i __W, __mmask8 __M, __m512i __X, __m512i __Y) static __inline __m512i __DEFAULT_FN_ATTRS _mm512_maskz_mul_epu32(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_selectq_512((__mmask8)__U, + return (__m512i)__builtin_ia32_selectq_512((__mmask8)__M, (__v8di)_mm512_mul_epu32(__X, __Y), (__v8di)_mm512_setzero_si512 ()); } |