diff options
author | Levy Hsu <admin@levyhsu.com> | 2024-10-09 16:38:57 +0800 |
---|---|---|
committer | Hongyu Wang <hongyu.wang@intel.com> | 2024-11-05 10:41:13 +0800 |
commit | 61622cfa463f2ef4fc835ace2ecf5451b232cf4f (patch) | |
tree | adbdb512a2ba720c5c9477af953d41d50ef6b4ce /gcc/cfgexpand.cc | |
parent | 6177b45fcdc4273c5e94e8032644ca5807e7e93b (diff) | |
download | gcc-61622cfa463f2ef4fc835ace2ecf5451b232cf4f.zip gcc-61622cfa463f2ef4fc835ace2ecf5451b232cf4f.tar.gz gcc-61622cfa463f2ef4fc835ace2ecf5451b232cf4f.tar.bz2 |
i386: Utilize VCOMSBF16 for BF16 Comparisons with AVX10.2
This patch enables the use of the VCOMSBF16 instruction from AVX10.2 for
efficient BF16 comparisons.
gcc/ChangeLog:
* config/i386/i386-expand.cc (ix86_expand_branch): Handle BFmode
when TARGET_AVX10_2_256 is enabled.
(ix86_prepare_fp_compare_args): Use SSE_FLOAT_MODE_SSEMATH_OR_HFBF_P.
(ix86_expand_fp_movcc): Ditto.
(ix86_expand_fp_compare): Handle BFmode under IX86_FPCMP_COMI.
* config/i386/i386.cc (ix86_multiplication_cost): Use
SSE_FLOAT_MODE_SSEMATH_OR_HFBF_P.
(ix86_division_cost): Ditto.
(ix86_rtx_costs): Ditto.
(ix86_vector_costs::add_stmt_cost): Ditto.
* config/i386/i386.h (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Rename to ...
(SSE_FLOAT_MODE_SSEMATH_OR_HFBF_P): ...this, and add BFmode.
* config/i386/i386.md (*cmpibf): New define_insn.
gcc/testsuite/ChangeLog:
* gcc.target/i386/avx10_2-comibf-1.c: New test.
* gcc.target/i386/avx10_2-comibf-2.c: Ditto.
Diffstat (limited to 'gcc/cfgexpand.cc')
0 files changed, 0 insertions, 0 deletions