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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuho...@gcc.gnu.org>:

https://gcc.gnu.org/g:4c957d7ba84d8bbce6e778048f38e92ef71806c8

commit r15-1563-g4c957d7ba84d8bbce6e778048f38e92ef71806c8
Author: Collin Funk <collin.fu...@gmail.com>
Date:   Mon Jun 10 06:36:47 2024 +0000

    AVX-512: Pacify -Wshift-overflow=2. [PR115409]

    A shift of 31 on a signed int is undefined behavior.  Since unsigned
    int is 32-bits wide this change fixes it and silences the warning.

    gcc/ChangeLog:

            PR target/115409
            * config/i386/avx512fp16intrin.h (_mm512_conj_pch): Make the
            constant unsigned before shifting.
            * config/i386/avx512fp16vlintrin.h (_mm256_conj_pch): Likewise.
            (_mm_conj_pch): Likewise.

    Signed-off-by: Collin Funk <collin.fu...@gmail.com>
  • [Bug target/115409] avx512 intr... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to