diff options
author | Patrick O'Neill <patrick@rivosinc.com> | 2024-06-18 14:40:15 -0700 |
---|---|---|
committer | Patrick O'Neill <patrick@rivosinc.com> | 2024-06-19 13:38:20 -0700 |
commit | e03583e7ee99552276a90a4094776fda55ab2e02 (patch) | |
tree | 7d05a42bc948617973b4b86870926753a14d40f2 /gcc/common | |
parent | 25860fd2a674373a6476af5ff0bd92354fc53d06 (diff) | |
download | gcc-e03583e7ee99552276a90a4094776fda55ab2e02.zip gcc-e03583e7ee99552276a90a4094776fda55ab2e02.tar.gz gcc-e03583e7ee99552276a90a4094776fda55ab2e02.tar.bz2 |
RISC-V: Promote Zaamo/Zalrsc to a when using an old binutils
Binutils 2.42 and before don't support Zaamo/Zalrsc. When users specify
both Zaamo and Zalrsc, promote them to 'a' in the -march string.
This does not affect testsuite results for users with old versions of binutils.
Testcases that failed due to 'call'/isa string continue to fail after this PATCH
when using an old version of binutils.
gcc/ChangeLog:
* common/config/riscv/riscv-common.cc: Add 'a' extension to
riscv_combine_info.
Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
Diffstat (limited to 'gcc/common')
-rw-r--r-- | gcc/common/config/riscv/riscv-common.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc index 1dc1d99..410e673 100644 --- a/gcc/common/config/riscv/riscv-common.cc +++ b/gcc/common/config/riscv/riscv-common.cc @@ -401,6 +401,7 @@ static const struct riscv_ext_version riscv_ext_version_table[] = /* Combine extensions defined in this table */ static const struct riscv_ext_version riscv_combine_info[] = { + {"a", ISA_SPEC_CLASS_20191213, 2, 1}, {"zk", ISA_SPEC_CLASS_NONE, 1, 0}, {"zkn", ISA_SPEC_CLASS_NONE, 1, 0}, {"zks", ISA_SPEC_CLASS_NONE, 1, 0}, |