public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107825] New: uninitialized variable warning in immintrin.h with skylake architecture
@ 2022-11-22 19:05 bill.trost at harmonicinc dot com
  2022-11-22 19:06 ` [Bug c++/107825] " bill.trost at harmonicinc dot com
  2022-11-22 19:14 ` [Bug c++/107825] uninitialized variable warning in avx512fintrin.h " pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: bill.trost at harmonicinc dot com @ 2022-11-22 19:05 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/107825] uninitialized variable warning in immintrin.h with skylake architecture
  2022-11-22 19:05 [Bug c++/107825] New: uninitialized variable warning in immintrin.h with skylake architecture bill.trost at harmonicinc dot com
@ 2022-11-22 19:06 ` bill.trost at harmonicinc dot com
  2022-11-22 19:14 ` [Bug c++/107825] uninitialized variable warning in avx512fintrin.h " pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: bill.trost at harmonicinc dot com @ 2022-11-22 19:06 UTC (permalink / raw)
  To: gcc-bugs

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

Bill T. <bill.trost at harmonicinc dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://godbolt.org/z/h8v1j
                   |                            |4Gac
                 CC|                            |bill.trost at harmonicinc dot com

--- Comment #1 from Bill T. <bill.trost at harmonicinc dot com> ---
Weirdly, the program seems to compile fine if C is used rather than C++.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/107825] uninitialized variable warning in avx512fintrin.h with skylake architecture
  2022-11-22 19:05 [Bug c++/107825] New: uninitialized variable warning in immintrin.h with skylake architecture bill.trost at harmonicinc dot com
  2022-11-22 19:06 ` [Bug c++/107825] " bill.trost at harmonicinc dot com
@ 2022-11-22 19:14 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-22 19:14 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 105593.

*** This bug has been marked as a duplicate of bug 105593 ***

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-22 19:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-22 19:05 [Bug c++/107825] New: uninitialized variable warning in immintrin.h with skylake architecture bill.trost at harmonicinc dot com
2022-11-22 19:06 ` [Bug c++/107825] " bill.trost at harmonicinc dot com
2022-11-22 19:14 ` [Bug c++/107825] uninitialized variable warning in avx512fintrin.h " pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).