https://gcc.gnu.org/bugzilla/show_bug.cgi?id=76342

            Bug ID: 76342
           Summary: AVX512: _mm512_undefined_epi32() intrinsic missing
                    (incorrectly named _mm512_undefined_si512)
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wen...@mitsuba-renderer.org
  Target Milestone: ---

Consider the following snippet:

// ------------------

#include <immintrin.h>
__m512 test() { return _mm512_undefined_epi32(); }

// ------------------

When compiled with GCC trunk, this yields the following error message:

test.cpp: In function '__m512 test()':
test.cpp:3:24: error: '_mm512_undefined_epi32' was not declared in this scope
 __m512 test() { return _mm512_undefined_epi32(); }
                        ^~~~~~~~~~~~~~~~~~~~~~
test.cpp:3:24: note: suggested alternative: '_mm512_undefined_si512'
 __m512 test() { return _mm512_undefined_epi32(); }
                        ^~~~~~~~~~~~~~~~~~~~~~
                        _mm512_undefined_si512

However, there is no _mm512_undefined_si512 intrinsic. It is called
_mm512_undefined_epi32. See here for details:
https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm512_undefined_epi32&expand=5509

Reply via email to