From 139bd3198a738a1d49cd27f37bab16c1916f3164 Mon Sep 17 00:00:00 2001 From: yulong Date: Sun, 17 Nov 2024 17:55:30 +0800 Subject: RISC-V: Add the mini support for SiFive extensions. This patch add the mini support for xsfvqmaccqoq, xsfvqmaccdod and xsfvfnrclipxfqf extensions. gcc/ChangeLog: * common/config/riscv/riscv-common.cc: New. * config/riscv/riscv.opt: New. gcc/testsuite/ChangeLog: * gcc.target/riscv/predef-sf-3.c: New test. * gcc.target/riscv/predef-sf-4.c: New test. * gcc.target/riscv/predef-sf-5.c: New test. --- gcc/common/config/riscv/riscv-common.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/common/config') diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc index b0e49eb..49e8a41 100644 --- a/gcc/common/config/riscv/riscv-common.cc +++ b/gcc/common/config/riscv/riscv-common.cc @@ -430,6 +430,9 @@ static const struct riscv_ext_version riscv_ext_version_table[] = {"xsfvcp", ISA_SPEC_CLASS_NONE, 1, 0}, {"xsfcease", ISA_SPEC_CLASS_NONE, 1, 0}, + {"xsfvqmaccqoq", ISA_SPEC_CLASS_NONE, 1, 0}, + {"xsfvqmaccdod", ISA_SPEC_CLASS_NONE, 1, 0}, + {"xsfvfnrclipxfqf", ISA_SPEC_CLASS_NONE, 1, 0}, /* Terminate the list. */ {NULL, ISA_SPEC_CLASS_NONE, 0, 0} @@ -1759,6 +1762,9 @@ static const riscv_ext_flag_table_t riscv_ext_flag_table[] = RISCV_EXT_FLAG_ENTRY ("xsfvcp", x_riscv_sifive_subext, MASK_XSFVCP), RISCV_EXT_FLAG_ENTRY ("xsfcease", x_riscv_sifive_subext, MASK_XSFCEASE), + RISCV_EXT_FLAG_ENTRY ("xsfvqmaccqoq", x_riscv_sifive_subext, MASK_XSFVQMACCQOQ), + RISCV_EXT_FLAG_ENTRY ("xsfvqmaccdod", x_riscv_sifive_subext, MASK_XSFVQMACCDOD), + RISCV_EXT_FLAG_ENTRY ("xsfvfnrclipxfqf", x_riscv_sifive_subext, MASK_XSFVFNRCLIPXFQF), {NULL, NULL, NULL, 0} }; -- cgit v1.1