Oops. I failed to squash this into another commit properly. Reverting momentarily.
~Craig On Mon, Dec 26, 2016 at 7:46 PM, Craig Topper via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ctopper > Date: Mon Dec 26 21:46:13 2016 > New Revision: 290574 > > URL: http://llvm.org/viewvc/llvm-project?rev=290574&view=rev > Log: > foo > > Modified: > cfe/trunk/include/clang/Basic/BuiltinsX86.def > cfe/trunk/lib/Headers/avx512fintrin.h > > Modified: cfe/trunk/include/clang/Basic/BuiltinsX86.def > URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/ > clang/Basic/BuiltinsX86.def?rev=290574&r1=290573&r2=290574&view=diff > ============================================================ > ================== > --- cfe/trunk/include/clang/Basic/BuiltinsX86.def (original) > +++ cfe/trunk/include/clang/Basic/BuiltinsX86.def Mon Dec 26 21:46:13 2016 > @@ -974,8 +974,8 @@ TARGET_BUILTIN(__builtin_ia32_pminsd512_ > TARGET_BUILTIN(__builtin_ia32_pminsq512_mask, "V8LLiV8LLiV8LLiV8LLiUc", > "", "avx512f") > TARGET_BUILTIN(__builtin_ia32_pminud512_mask, "V16iV16iV16iV16iUs", "", > "avx512f") > TARGET_BUILTIN(__builtin_ia32_pminuq512_mask, "V8LLiV8LLiV8LLiV8LLiUc", > "", "avx512f") > -TARGET_BUILTIN(__builtin_ia32_pmuldq512_mask, "V8LLiV16iV16iV8LLiUc", > "", "avx512f") > -TARGET_BUILTIN(__builtin_ia32_pmuludq512_mask, "V8LLiV16iV16iV8LLiUc", > "", "avx512f") > +TARGET_BUILTIN(__builtin_ia32_pmuldq512, "V8LLiV16iV16i", "", "avx512f") > +TARGET_BUILTIN(__builtin_ia32_pmuludq512, "V8LLiV16iV16i", "", "avx512f") > TARGET_BUILTIN(__builtin_ia32_ptestmd512, "UsV16iV16iUs", "", "avx512f") > TARGET_BUILTIN(__builtin_ia32_ptestmq512, "UcV8LLiV8LLiUc", "", > "avx512f") > TARGET_BUILTIN(__builtin_ia32_pbroadcastd512_gpr_mask, "V16iiV16iUs", > "", "avx512f") > > Modified: cfe/trunk/lib/Headers/avx512fintrin.h > URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/ > avx512fintrin.h?rev=290574&r1=290573&r2=290574&view=diff > ============================================================ > ================== > --- cfe/trunk/lib/Headers/avx512fintrin.h (original) > +++ cfe/trunk/lib/Headers/avx512fintrin.h Mon Dec 26 21:46:13 2016 > @@ -1416,57 +1416,45 @@ _mm512_maskz_min_epu64 (__mmask8 __M, __ > static __inline __m512i __DEFAULT_FN_ATTRS > _mm512_mul_epi32(__m512i __X, __m512i __Y) > { > - return (__m512i) __builtin_ia32_pmuldq512_mask ((__v16si) __X, > - (__v16si) __Y, > - (__v8di) > - _mm512_setzero_si512 (), > - (__mmask8) -1); > + return (__m512i)__builtin_ia32_pmuldq512((__v16si)__X, (__v16si) __Y); > } > > static __inline __m512i __DEFAULT_FN_ATTRS > -_mm512_mask_mul_epi32 (__m512i __W, __mmask8 __M, __m512i __X, __m512i > __Y) > +_mm512_mask_mul_epi32(__m512i __W, __mmask8 __M, __m512i __X, __m512i __Y) > { > - return (__m512i) __builtin_ia32_pmuldq512_mask ((__v16si) __X, > - (__v16si) __Y, > - (__v8di) __W, __M); > + return (__m512i)__builtin_ia32_selectq_512((__mmask8)__U, > + > (__v8di)_mm512_mul_epi32(__X, __Y), > + (__v8di)__W); > } > > static __inline __m512i __DEFAULT_FN_ATTRS > -_mm512_maskz_mul_epi32 (__mmask8 __M, __m512i __X, __m512i __Y) > +_mm512_maskz_mul_epi32(__mmask8 __M, __m512i __X, __m512i __Y) > { > - return (__m512i) __builtin_ia32_pmuldq512_mask ((__v16si) __X, > - (__v16si) __Y, > - (__v8di) > - _mm512_setzero_si512 (), > - __M); > + return (__m512i)__builtin_ia32_selectq_512((__mmask8)__U, > + > (__v8di)_mm512_mul_epi32(__X, __Y), > + (__v8di)_mm512_setzero_si512 > ()); > } > > static __inline __m512i __DEFAULT_FN_ATTRS > _mm512_mul_epu32(__m512i __X, __m512i __Y) > { > - return (__m512i) __builtin_ia32_pmuludq512_mask ((__v16si) __X, > - (__v16si) __Y, > - (__v8di) > - _mm512_setzero_si512 (), > - (__mmask8) -1); > + return (__m512i)__builtin_ia32_pmuludq512((__v16si)__X, (__v16si)__Y); > } > > static __inline __m512i __DEFAULT_FN_ATTRS > -_mm512_mask_mul_epu32 (__m512i __W, __mmask8 __M, __m512i __X, __m512i > __Y) > +_mm512_mask_mul_epu32(__m512i __W, __mmask8 __M, __m512i __X, __m512i __Y) > { > - return (__m512i) __builtin_ia32_pmuludq512_mask ((__v16si) __X, > - (__v16si) __Y, > - (__v8di) __W, __M); > + return (__m512i)__builtin_ia32_selectq_512((__mmask8)__U, > + > (__v8di)_mm512_mul_epu32(__X, __Y), > + (__v8di)__W); > } > > static __inline __m512i __DEFAULT_FN_ATTRS > -_mm512_maskz_mul_epu32 (__mmask8 __M, __m512i __X, __m512i __Y) > +_mm512_maskz_mul_epu32(__mmask8 __M, __m512i __X, __m512i __Y) > { > - return (__m512i) __builtin_ia32_pmuludq512_mask ((__v16si) __X, > - (__v16si) __Y, > - (__v8di) > - _mm512_setzero_si512 (), > - __M); > + return (__m512i)__builtin_ia32_selectq_512((__mmask8)__U, > + > (__v8di)_mm512_mul_epu32(__X, __Y), > + (__v8di)_mm512_setzero_si512 > ()); > } > > static __inline __m512i __DEFAULT_FN_ATTRS > > > _______________________________________________ > cfe-commits mailing list > cfe-commits@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits >
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits