]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add SiFive extensions, xsfvcp and xsfcease
authorKito Cheng <kito.cheng@sifive.com>
Tue, 9 Jul 2024 07:50:57 +0000 (15:50 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Fri, 12 Jul 2024 07:54:51 +0000 (15:54 +0800)
commit3ea47ea1fcab95fd1b80acc724fdbb27fc436985
treef6f9bc1c2deb45872d0b6a6674c4d4f21c0c0cc7
parentf7e4000397842671fe7e5c0473f1fa62707e1db9
RISC-V: Add SiFive extensions, xsfvcp and xsfcease

We have already upstreamed these extensions into binutils, and now we need GCC
to recognize these extensions and pass them to binutils as well. We also plan
to upstream intrinsics in the near future. :)

gcc/ChangeLog:

* common/config/riscv/riscv-common.cc (riscv_implied_info): Add xsfvcp.
(riscv_ext_version_table): Add xsfvcp, xsfcease.
(riscv_ext_flag_table): Ditto.
* config/riscv/riscv.opt (riscv_sifive_subext): New.
(XSFVCP): New.
(XSFCEASE): New.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/predef-sf-1.c: New.
* gcc.target/riscv/predef-sf-2.c: New.
gcc/common/config/riscv/riscv-common.cc
gcc/config/riscv/riscv.opt
gcc/testsuite/gcc.target/riscv/predef-sf-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/predef-sf-2.c [new file with mode: 0644]