riscv: riscv-cores.def: Add T-Head XuanTie C906
commitc36fb3ca9eef56bc2f597e0fee577aca96ec3754
authorChristoph Müllner <christoph.muellner@vrull.eu>
Mon, 13 Jun 2022 13:09:46 +0000 (13 15:09 +0200)
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>
Wed, 15 Mar 2023 08:56:25 +0000 (15 09:56 +0100)
treeb9a76f59fbf74ea93e8a39463173748152330919
parent8351535f20b52cf332791f60d2bf22a025833516
riscv: riscv-cores.def: Add T-Head XuanTie C906

This adds T-Head's XuanTie C906 to the list of known cores as "thead-c906".
The C906 is shipped for quite some time (it is the core of the Allwinner D1).
Note, that the tuning struct for the C906 is already part of GCC (it is
also name "thead-c906").

gcc/ChangeLog:

* config/riscv/riscv-cores.def (RISCV_CORE): Add "thead-c906".

gcc/testsuite/ChangeLog:

* gcc.target/riscv/mcpu-thead-c906.c: New test.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
gcc/config/riscv/riscv-cores.def
gcc/testsuite/gcc.target/riscv/mcpu-thead-c906.c [new file with mode: 0644]