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

            Bug ID: 107825
           Summary: uninitialized variable warning in immintrin.h with
                    skylake architecture
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bill.trost at harmonicinc dot com
  Target Milestone: ---

Created attachment 53948
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53948&action=edit
Error mesages generated by compiling the program using the indicated flags

The following program generates warnings about uninitialized parameters in
avx512fintrin.h.


#include <immintrin.h>

__m512 f(__m512i a)
{
    return _mm512_cvtepi32_ps(a);
}

// Compiler used: x86-64 gcc 12.2
// Options used: -O3 -Wall -Werror -march=skylake-avx512


Warnings are attached, but in summary, the value _mm512_undefined_ps() passed
to __builtin_ia32_cvtdq2ps512_mask is deliberately uninitialized.

Reply via email to