]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Support RVV FP16 MISC vlmul ext intrinsic API
authorPan Li <pan2.li@intel.com>
Sun, 11 Jun 2023 00:28:06 +0000 (08:28 +0800)
committerPan Li <pan2.li@intel.com>
Mon, 12 Jun 2023 03:34:17 +0000 (11:34 +0800)
commit7fc2b9ea2c41ae28154288c0a56e3e5c53b7df5b
treed83a2ed615953098447cf2a887e8e1abf7559ce6
parentf47ecca87573244c138a585b2a734e4d7ab5d0a2
RISC-V: Support RVV FP16 MISC vlmul ext intrinsic API

This patch support the intrinsic API of FP16 ZVFHMIN vlmul ext. Aka:

vfloat16*_t <==> vfloat16*_t.

From the user's perspective, it is reasonable to do some type convert
between vfloat16*_t and vfloat16*_t when only ZVFHMIN is enabled.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/ChangeLog:

* config/riscv/riscv-vector-builtins-types.def
(vfloat16mf4_t): Add type to X2/X4/X8/X16/X32 vlmul ext ops.
(vfloat16mf2_t): Ditto.
(vfloat16m1_t): Ditto.
(vfloat16m2_t): Ditto.
(vfloat16m4_t): Ditto.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/base/zvfh-over-zvfhmin.c: Add new test cases.
* gcc.target/riscv/rvv/base/zvfhmin-intrinsic.c: Add new test cases.
gcc/config/riscv/riscv-vector-builtins-types.def
gcc/testsuite/gcc.target/riscv/rvv/base/zvfh-over-zvfhmin.c
gcc/testsuite/gcc.target/riscv/rvv/base/zvfhmin-intrinsic.c