]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Add implicit dependency to the XTheadVector extension
authorTsukasa OI <research_trasio@irq.a4lg.com>
Sun, 18 May 2025 04:35:16 +0000 (04:35 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Mon, 19 May 2025 10:55:31 +0000 (10:55 +0000)
commited57ac46e53a71c463c0f7510d4e3bb5aac675ab
tree8ce01104eda5d060c20afc20e4a96184e996a5de
parentb63fda3c7262dfedf18200d0a2ee23804d11607b
RISC-V: Add implicit dependency to the XTheadVector extension

While this dependency is not directly stated in the documentation,
the XTheadVector extension cannot work without the Zicsr extension
(the documentation does not specify CSR access instruction subset
either as in the Zkr extension or the seed CSR section in the manual).

Also, making an implication to the Zicsr extension is in parity with
the ratified vector extensions (in GNU Binutils, the Zve32x extension --
a dependency of V -- depends on the Zvl32b and Zicsr extensions).

This commit adds this implicit dependency.

bfd/ChangeLog:

* elfxx-riscv.c (riscv_implicit_subsets): Add implicit
dependency "XTheadVector" -> "Zicsr".

gas/ChangeLog:

* testsuite/gas/riscv/imply.s: Add implicit "XTheadVector"
dependency to the "Zicsr" extension.
* testsuite/gas/riscv/imply.d: Ditto.
bfd/elfxx-riscv.c
gas/testsuite/gas/riscv/imply.d
gas/testsuite/gas/riscv/imply.s