Re: [PATCH] Issue a warning for conversion between short and __bf16 under TARGET_AVX512BF16.

2023-06-26 Thread Hongtao Liu via Gcc-patches
On Mon, Jun 26, 2023 at 4:54 PM liuhongt wrote: > > __bfloat16 is redefined from typedef short to real __bf16 since GCC > V13. The patch issues an warning for potential silent implicit > conversion between __bf16 and short where users may only expect a > data movement. > > To avoid too many false

[PATCH] Issue a warning for conversion between short and __bf16 under TARGET_AVX512BF16.

2023-06-26 Thread liuhongt via Gcc-patches
__bfloat16 is redefined from typedef short to real __bf16 since GCC V13. The patch issues an warning for potential silent implicit conversion between __bf16 and short where users may only expect a data movement. To avoid too many false positive, warning is only under TARGET_AVX512BF16. Bootstrapp