<div dir="ltr">The same bug existed in avx512vlbwintrin.h too. Fixed in r270970.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 25, 2016 at 8:05 AM, Michael Zuckerman via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: mzuckerm<br>
Date: Wed May 25 10:05:03 2016<br>
New Revision: 270707<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=270707&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=270707&view=rev</a><br>
Log:<br>
[Clang][AVX512][Builtin] Fix palignr intrinsics header<br>
<br>
Differential Revision: <a href="http://reviews.llvm.org/D20620" rel="noreferrer" target="_blank">http://reviews.llvm.org/D20620</a><br>
<br>
Modified:<br>
    cfe/trunk/lib/Headers/avx512bwintrin.h<br>
<br>
Modified: cfe/trunk/lib/Headers/avx512bwintrin.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/avx512bwintrin.h?rev=270707&r1=270706&r2=270707&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/avx512bwintrin.h?rev=270707&r1=270706&r2=270707&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/lib/Headers/avx512bwintrin.h (original)<br>
+++ cfe/trunk/lib/Headers/avx512bwintrin.h Wed May 25 10:05:03 2016<br>
@@ -2145,19 +2145,19 @@ _mm512_mask_permutexvar_epi16 (__m512i _<br>
<br>
 #define _mm512_alignr_epi8(A, B, N) __extension__ ({\<br>
   (__m512i)__builtin_ia32_palignr512_mask((__v64qi)(__m512i)(A), \<br>
-                                          (__v64qi)(__m512i)(B), (int)(N) * 8, \<br>
+                                          (__v64qi)(__m512i)(B), (int)(N), \<br>
                                           (__v64qi)_mm512_undefined_pd(), \<br>
                                           (__mmask64)-1); })<br>
<br>
 #define _mm512_mask_alignr_epi8(W, U, A, B, N) __extension__({\<br>
   (__m512i)__builtin_ia32_palignr512_mask((__v64qi)(__m512i)(A), \<br>
-                                          (__v64qi)(__m512i)(B), (int)(N) * 8, \<br>
+                                          (__v64qi)(__m512i)(B), (int)(N), \<br>
                                           (__v64qi)(__m512i)(W), \<br>
                                           (__mmask64)(U)); })<br>
<br>
 #define _mm512_maskz_alignr_epi8(U, A, B, N) __extension__({\<br>
   (__m512i)__builtin_ia32_palignr512_mask((__v64qi)(__m512i)(A), \<br>
-                                          (__v64qi)(__m512i)(B), (int)(N) * 8, \<br>
+                                          (__v64qi)(__m512i)(B), (int)(N), \<br>
                                           (__v64qi)_mm512_setzero_si512(), \<br>
                                           (__mmask64)(U)); })<br>
<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">~Craig</div>
</div>