From: LiaoShihua <shi...@iscas.ac.cn> Zmmul extension is Multiply only extension for RISC-V.It implements the multiplication subset of the M extension. The encodings are identical to those of the corresponding M-extension instructions. When You both use M extension add Zmmul extension, it will warning "-mdiv cannot use when the ZMMUL extension is present"
LiaoShihua (1): RISC-V: Support Zmmul extension gcc/common/config/riscv/riscv-common.cc | 3 +++ gcc/config/riscv/riscv-opts.h | 3 +++ gcc/config/riscv/riscv.cc | 8 +++++-- gcc/config/riscv/riscv.md | 28 ++++++++++++------------ gcc/config/riscv/riscv.opt | 3 +++ gcc/testsuite/gcc.target/riscv/zmmul-1.c | 20 +++++++++++++++++ gcc/testsuite/gcc.target/riscv/zmmul-2.c | 20 +++++++++++++++++ 7 files changed, 69 insertions(+), 16 deletions(-) create mode 100644 gcc/testsuite/gcc.target/riscv/zmmul-1.c create mode 100644 gcc/testsuite/gcc.target/riscv/zmmul-2.c -- 2.31.1.windows.1