diff options
author | Pan Li <pan2.li@intel.com> | 2023-06-09 11:19:12 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2023-06-09 16:30:05 +0800 |
commit | cb33116afc2da3024cffdeed5d90b69c3820017b (patch) | |
tree | dd739d91565bb92193f4cf62c771465adb456581 /gcc/tree-vectorizer.h | |
parent | 7f4644f8c683b6a60462a5e10ab67a0598945c37 (diff) | |
download | gcc-cb33116afc2da3024cffdeed5d90b69c3820017b.zip gcc-cb33116afc2da3024cffdeed5d90b69c3820017b.tar.gz gcc-cb33116afc2da3024cffdeed5d90b69c3820017b.tar.bz2 |
RISC-V: Refactor requirement of ZVFH and ZVFHMIN.
This patch would like to refactor the requirement of both the ZVFH
and ZVFHMIN. By default, the ZVFHMIN will enable FP16 for all the
iterators of RVV. And then the ZVFH will leverage one define attr as
the gate for FP16 supported or not.
Please note the ZVFH will cover the ZVFHMIN instructions. This patch
add one test for this.
Signed-off-by: Pan Li <pan2.li@intel.com>
Co-Authored by: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Co-Authored by: Kito Cheng <kito.cheng@sifive.com>
gcc/ChangeLog:
* config/riscv/riscv.md (enabled): Move to another place, and
add fp_vector_disabled to the cond.
(fp_vector_disabled): New attr defined for disabling fp.
* config/riscv/vector-iterators.md: Fix V_WHOLE and V_FRACT.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/base/zvfhmin-intrinsic.c: Add vle16 test
for ZVFHMIN.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions