This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/76342] New: AVX512: _mm512_undefined_epi32() intrinsic missing (incorrectly named _mm512_undefined_si512)


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: wenzel@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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]