r270707 - [Clang][AVX512][Builtin] Fix palignr intrinsics header
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Fri May 27 00:07:53 PDT 2016
The same bug existed in avx512vlbwintrin.h too. Fixed in r270970.
On Wed, May 25, 2016 at 8:05 AM, Michael Zuckerman via cfe-commits <
cfe-commits at lists.llvm.org> wrote:
> Author: mzuckerm
> Date: Wed May 25 10:05:03 2016
> New Revision: 270707
>
> URL: http://llvm.org/viewvc/llvm-project?rev=270707&view=rev
> Log:
> [Clang][AVX512][Builtin] Fix palignr intrinsics header
>
> Differential Revision: http://reviews.llvm.org/D20620
>
> Modified:
> cfe/trunk/lib/Headers/avx512bwintrin.h
>
> Modified: cfe/trunk/lib/Headers/avx512bwintrin.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/avx512bwintrin.h?rev=270707&r1=270706&r2=270707&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Headers/avx512bwintrin.h (original)
> +++ cfe/trunk/lib/Headers/avx512bwintrin.h Wed May 25 10:05:03 2016
> @@ -2145,19 +2145,19 @@ _mm512_mask_permutexvar_epi16 (__m512i _
>
> #define _mm512_alignr_epi8(A, B, N) __extension__ ({\
> (__m512i)__builtin_ia32_palignr512_mask((__v64qi)(__m512i)(A), \
> - (__v64qi)(__m512i)(B), (int)(N)
> * 8, \
> + (__v64qi)(__m512i)(B),
> (int)(N), \
> (__v64qi)_mm512_undefined_pd(),
> \
> (__mmask64)-1); })
>
> #define _mm512_mask_alignr_epi8(W, U, A, B, N) __extension__({\
> (__m512i)__builtin_ia32_palignr512_mask((__v64qi)(__m512i)(A), \
> - (__v64qi)(__m512i)(B), (int)(N)
> * 8, \
> + (__v64qi)(__m512i)(B),
> (int)(N), \
> (__v64qi)(__m512i)(W), \
> (__mmask64)(U)); })
>
> #define _mm512_maskz_alignr_epi8(U, A, B, N) __extension__({\
> (__m512i)__builtin_ia32_palignr512_mask((__v64qi)(__m512i)(A), \
> - (__v64qi)(__m512i)(B), (int)(N)
> * 8, \
> + (__v64qi)(__m512i)(B),
> (int)(N), \
>
> (__v64qi)_mm512_setzero_si512(), \
> (__mmask64)(U)); })
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
--
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160527/298f3e06/attachment-0001.html>
More information about the cfe-commits
mailing list