aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorTsukasa OI <research_trasio@irq.a4lg.com>2023-07-24 05:09:39 +0000
committerTsukasa OI <research_trasio@irq.a4lg.com>2023-07-24 23:42:35 +0000
commit6e30678feb8ab38ad80a589226c5d0e9c9dc399e (patch)
tree2575ed38bd4d8980dc63bb69338ced81f57ecb02 /bfd
parent766f6d170c56d1d7b03e81f64d069386d0a7c5dd (diff)
downloadgdb-6e30678feb8ab38ad80a589226c5d0e9c9dc399e.zip
gdb-6e30678feb8ab38ad80a589226c5d0e9c9dc399e.tar.gz
gdb-6e30678feb8ab38ad80a589226c5d0e9c9dc399e.tar.bz2
RISC-V: Implications from 'Zc[fd]' extensions
The version 1.0.4-1 of the code size reduction specification clarifies that 'Zcf' implies 'F' and 'Zcd' implies 'D'. cf: <https://github.com/riscv/riscv-code-size-reduction/releases/tag/v1.0.4-1> This commit adds those implications. bfd/ChangeLog: * elfxx-riscv.c (riscv_implicit_subsets): Add two implications, 'Zcf' -> 'F' and 'Zcd' -> 'D'. gas/ChangeLog: * testsuite/gas/riscv/march-imply-zcd.d: New test. * testsuite/gas/riscv/march-imply-zcf.d: New test.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/elfxx-riscv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index eaf4966..b43d2cf 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -1132,6 +1132,8 @@ static struct riscv_implicit_subset riscv_implicit_subsets[] =
{"zvl256b", "zvl128b", check_implicit_always},
{"zvl128b", "zvl64b", check_implicit_always},
{"zvl64b", "zvl32b", check_implicit_always},
+ {"zcd", "d", check_implicit_always},
+ {"zcf", "f", check_implicit_always},
{"zfa", "f", check_implicit_always},
{"d", "f", check_implicit_always},
{"zfh", "zfhmin", check_implicit_always},