[llvm-bugs] [Bug 30691] New: AV512: _mm512_slli_epi32 requires constant

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 13 16:32:21 PDT 2016


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: unassignedclangbugs at nondot.org
          Reporter: Roland.Schulz at Intel.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161013/fad6f7c8/attachment.html>


More information about the llvm-bugs mailing list