RISC-V: Imply 'Zicsr' from 'Zve32x'
authorTsukasa OI <research_trasio@irq.a4lg.com>
Wed, 2 Aug 2023 23:50:27 +0000 (23:50 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Thu, 3 Aug 2023 00:01:31 +0000 (00:01 +0000)
Further clarification is made so that 'Zve32x' implies 'Zicsr' (the same
implication is already implemented in LLVM).

See related issue (the author raised) on the vector specification:
<https://github.com/riscv/riscv-v-spec/issues/908>
and its resolution:
<https://github.com/riscv/riscv-v-spec/issues/909>

bfd/ChangeLog:

* elfxx-riscv.c (riscv_implicit_subsets): Add 'Zve32x' -> 'Zicsr'.

bfd/elfxx-riscv.c

index ba5165766b2b149bd82e065fec64d870ddc7a695..2ce95d90df52005ff4390b5b1ada0043dbe0e352 100644 (file)
@@ -1121,6 +1121,7 @@ static struct riscv_implicit_subset riscv_implicit_subsets[] =
   {"zve64x", "zve32x", check_implicit_always},
   {"zve64x", "zvl64b", check_implicit_always},
   {"zve32x", "zvl32b", check_implicit_always},
+  {"zve32x", "zicsr",  check_implicit_always},
   {"zvl65536b", "zvl32768b",   check_implicit_always},
   {"zvl32768b", "zvl16384b",   check_implicit_always},
   {"zvl16384b", "zvl8192b",    check_implicit_always},