[Bug target/101471] AVX512 incorrect writemask generated for _mm512_fpclass_ps_mask in O0

2023-11-30 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101471

liuhongt at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED
 CC||liuhongt at gcc dot gnu.org

--- Comment #9 from liuhongt at gcc dot gnu.org ---
Fixed.

[Bug target/101471] AVX512 incorrect writemask generated for _mm512_fpclass_ps_mask in O0

2021-08-25 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101471

--- Comment #8 from Hongtao.liu  ---
Fixed in GCC12, backport to GCC9, GCC10 and GCC11.

[Bug target/101471] AVX512 incorrect writemask generated for _mm512_fpclass_ps_mask in O0

2021-08-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101471

--- Comment #7 from CVS Commits  ---
The releases/gcc-9 branch has been updated by hongtao Liu
:

https://gcc.gnu.org/g:357246c04dc869aec2f099e8c73f9a2bd5f030ca

commit r9-9694-g357246c04dc869aec2f099e8c73f9a2bd5f030ca
Author: konglin1 
Date:   Mon Aug 9 10:58:24 2021 +0800

i386: Fix _mm512_fpclass_ps_mask in O0 [PR 101471]

gcc/ChangeLog:

PR target/101471
* config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
macro define in O0.
(_mm512_mask_fpclass_ps_mask): Ditto.

gcc/testsuite/ChangeLog:

PR target/101471
* gcc.target/i386/avx512f-pr101471.c: New test.

[Bug target/101471] AVX512 incorrect writemask generated for _mm512_fpclass_ps_mask in O0

2021-08-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101471

--- Comment #6 from CVS Commits  ---
The releases/gcc-10 branch has been updated by hongtao Liu
:

https://gcc.gnu.org/g:280b69a94f49ad449159f3be6597173c67b11176

commit r10-10069-g280b69a94f49ad449159f3be6597173c67b11176
Author: konglin1 
Date:   Mon Aug 9 10:58:24 2021 +0800

i386: Fix _mm512_fpclass_ps_mask in O0 [PR 101471]

gcc/ChangeLog:

PR target/101471
* config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
macro define in O0.
(_mm512_mask_fpclass_ps_mask): Ditto.

gcc/testsuite/ChangeLog:

PR target/101471
* gcc.target/i386/avx512f-pr101471.c: New test.

[Bug target/101471] AVX512 incorrect writemask generated for _mm512_fpclass_ps_mask in O0

2021-08-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101471

--- Comment #5 from CVS Commits  ---
The releases/gcc-11 branch has been updated by hongtao Liu
:

https://gcc.gnu.org/g:6604b336517463f9189e1c95db405a154aa7c815

commit r11-8924-g6604b336517463f9189e1c95db405a154aa7c815
Author: konglin1 
Date:   Mon Aug 9 10:58:24 2021 +0800

i386: Fix _mm512_fpclass_ps_mask in O0 [PR 101471]

gcc/ChangeLog:

PR target/101471
* config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
macro define in O0.
(_mm512_mask_fpclass_ps_mask): Ditto.

gcc/testsuite/ChangeLog:

PR target/101471
* gcc.target/i386/avx512f-pr101471.c: New test.

[Bug target/101471] AVX512 incorrect writemask generated for _mm512_fpclass_ps_mask in O0

2021-08-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101471

--- Comment #4 from CVS Commits  ---
The master branch has been updated by hongtao Liu :

https://gcc.gnu.org/g:db3d4129b6f4cff685713da514b64ff7bbc401fc

commit r12-3135-gdb3d4129b6f4cff685713da514b64ff7bbc401fc
Author: konglin1 
Date:   Mon Aug 9 10:58:24 2021 +0800

i386: Fix _mm512_fpclass_ps_mask in O0 [PR 101471]

gcc/ChangeLog:

PR target/101471
* config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
macro define in O0.
(_mm512_mask_fpclass_ps_mask): Ditto.

gcc/testsuite/ChangeLog:

PR target/101471
* gcc.target/i386/avx512f-pr101471.c: New test.

[Bug target/101471] AVX512 incorrect writemask generated for _mm512_fpclass_ps_mask in O0

2021-07-19 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101471

--- Comment #3 from Hongtao.liu  ---
We need to fixed for -O0 in header file.

[Bug target/101471] AVX512 incorrect writemask generated for _mm512_fpclass_ps_mask in O0

2021-07-19 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101471

Hongtao.liu  changed:

   What|Removed |Added

 CC||wwwhhhyyy333 at gmail dot com

--- Comment #2 from Hongtao.liu  ---
w/ -O0, it's defined as macro

#define _mm512_fpclass_ps_mask(x, c)\
  ((__mmask16) __builtin_ia32_fpclassps512_mask ((__v16sf) (__m512) (x),\
 (int) (c),(__mmask8)-1))

and (__mmask16)-1 should be used

w/ -O2 it's ok

extern __inline __mmask16
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
_mm512_fpclass_ps_mask (__m512 __A, const int __imm)
{
  return (__mmask16) __builtin_ia32_fpclassps512_mask ((__v16sf) __A,
   __imm,
   (__mmask16) -1);
}

[Bug target/101471] AVX512 incorrect writemask generated for _mm512_fpclass_ps_mask in O0

2021-07-16 Thread kastianoza at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101471

--- Comment #1 from Kastax  ---
Attachment size limit is too strict for me to include "the preprocessed file
(*.i*) that triggers the bug"