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
    Classification: Unclassified

#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

Reply via email to