]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Bugfix for RVV floating-point rm suffix sequence
authorPan Li <pan2.li@intel.com>
Mon, 31 Jul 2023 02:51:33 +0000 (10:51 +0800)
committerPan Li <pan2.li@intel.com>
Mon, 31 Jul 2023 03:00:21 +0000 (11:00 +0800)
commit9f63862184b14a5f04a6e91c8c055687f2720d73
tree9c7b8714c917aa2f8e9cef183b0fb16dc916a612
parent92a891e869d35c940d2a7b92355af02d78c9a86e
RISC-V: Bugfix for RVV floating-point rm suffix sequence

According to below RVV intrinsic doc, the RVV floating-point intrinsic name
with rounding mode should be:

_rm_m

instead of:

_m_rm

https://github.com/riscv-non-isa/rvv-intrinsic-doc/pull/226

This patch fix this naming sequence issue and adjust the test cases.

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

* config/riscv/riscv-vector-builtins-shapes.cc (struct alu_frm_def):
Move rm suffix before mask.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/base/float-point-frm-insert-1.c: Adjust
test cases.
* gcc.target/riscv/rvv/base/float-point-frm.c: Ditto.
gcc/config/riscv/riscv-vector-builtins-shapes.cc
gcc/testsuite/gcc.target/riscv/rvv/base/float-point-frm-insert-1.c
gcc/testsuite/gcc.target/riscv/rvv/base/float-point-frm.c