From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1314) id 242F93858422; Mon, 15 Aug 2022 23:13:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 242F93858422 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Andrew Pinski To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/pinskia/heads/riscvbit)] [RISCV] have b ISA extension enable zba, zbb, zbc and zbs ISA extensions X-Act-Checkin: gcc X-Git-Author: Andrew Pinski X-Git-Refname: refs/users/pinskia/heads/riscvbit X-Git-Oldrev: e32ca426242f0e3c650f3122342792ad42255511 X-Git-Newrev: e2688326256ca637c183c55f3f9d73024dc071ff Message-Id: <20220815231339.242F93858422@sourceware.org> Date: Mon, 15 Aug 2022 23:13:39 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2022 23:13:39 -0000 https://gcc.gnu.org/g:e2688326256ca637c183c55f3f9d73024dc071ff commit e2688326256ca637c183c55f3f9d73024dc071ff Author: Andrew Pinski Date: Thu Aug 4 16:40:15 2022 -0700 [RISCV] have b ISA extension enable zba, zbb, zbc and zbs ISA extensions This patch allows the b ISA extension to be supply and will enable all 4 of the sections of the ISA extensions. OK? Built and tested on riscv32-elf with --with-arch==rv32iabmc . Signed-off-by: Andrew Pinski gcc/ChangeLog: PR target/106531 * common/config/riscv/riscv-common.cc: Change-Id: Ic7e06760f4f6f6f4627185c67ced397c094023fd Diff: --- gcc/common/config/riscv/riscv-common.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc index 0e5be2ce105..ac257daecfa 100644 --- a/gcc/common/config/riscv/riscv-common.cc +++ b/gcc/common/config/riscv/riscv-common.cc @@ -65,6 +65,11 @@ static const riscv_implied_info_t riscv_implied_info[] = {"zks", "zksed"}, {"zks", "zksh"}, + {"b", "zba"}, + {"b", "zbb"}, + {"b", "zbc"}, + {"b", "zbs"}, + {"v", "zvl128b"}, {"v", "zve64d"}, @@ -149,6 +154,7 @@ static const struct riscv_ext_version riscv_ext_version_table[] = {"zifencei", ISA_SPEC_CLASS_20191213, 2, 0}, {"zifencei", ISA_SPEC_CLASS_20190608, 2, 0}, + {"b", ISA_SPEC_CLASS_NONE, 1, 0}, {"zba", ISA_SPEC_CLASS_NONE, 1, 0}, {"zbb", ISA_SPEC_CLASS_NONE, 1, 0}, {"zbc", ISA_SPEC_CLASS_NONE, 1, 0},