https://llvm.org/bugs/show_bug.cgi?id=30691

            Bug ID: 30691
           Summary: AV512: _mm512_slli_epi32 requires constant
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: roland.sch...@intel.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Given:
#include <immintrin.h>
__m512i f(__m512i x, int n) {
  return _mm512_slli_epi32(x,n);
}
Clang reports:
error: argument to '__builtin_ia32_pslldi512_mask' must be a constant integer

The corresponding AVX256 intrinsic works fine in clang. Also the AVX512 one
works fine in GCC and ICC. I think it (and _mm512_srli_epi32) should work
consistently by mapping to vpsllvd for non-const values, instead of requiring
const values.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to