]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PATCH] RISC-V: Add missing insn types for XiangShan Nanhu scheduler model
authorZhao Dingyi <dingyizhao.zdy@outlook.com>
Sat, 7 Sep 2024 16:48:46 +0000 (10:48 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Sat, 7 Sep 2024 16:48:46 +0000 (10:48 -0600)
commit6749c69ae143ed808e0d0aa9097f0c9b7c6a785d
tree88853fe95fec9f1972434662d3ac2202c499d316
parentd620499b3a24f14cfb98529640584e63d7eca149
[PATCH] RISC-V: Add missing insn types for XiangShan Nanhu scheduler model

This patch aims to add the missing instruction types to the XiangShan-Nanhu scheduler model.

The current XiangShan -Nanhu model lacks the trap, atomic trap, fcvt_i2f, and fcvt_f2i instructions.

The trap, atomic, and i2f instructions belong to xs_jmp_rs. [1]

The f2i instruction belongs to xs_fmisc_rs.[2]

[1]
https://github.com/OpenXiangShan/XiangShan/blob/v2.0/src/main/scala/xiangshan/package.scala#L780

[2]
https://github.com/OpenXiangShan/XiangShan/blob/v2.0/src/main/scala/xiangshan/backend/decode/DecodeUnit.scala#L290

gcc/ChangeLog:

* config/riscv/xiangshan.md: Add atomic, trap, fcvt_i2f, fcvt_f2i.
gcc/config/riscv/xiangshan.md