From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7803) id CFB7C3882118; Tue, 18 Jun 2024 08:23:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CFB7C3882118 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1718699033; bh=2JbyEpadlE4ml43hH4xVjgk547rqmGGRCh+FCxv5USs=; h=From:To:Subject:Date:From; b=Lvs238rM4HNvsHQrrfBrXfSGhjfkZdT2UAuwcNHwmR3gsv+bkbI64tbcNMYbFKqDG kowaWDPqQWqHC62uyTHjkACM0lBHD0HwY3JgM1/n+TZxXoWL4lvhIomQ09UycOhHlp O5e6Fjt3OeoeycsTx9FmpuZ32YHvQsctT5AvwhTY= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Nelson Chu To: binutils-cvs@sourceware.org Subject: [binutils-gdb] RISC-V: Fixed typo from smscrind to smcsrind in riscv_implicit_subsets. X-Act-Checkin: binutils-gdb X-Git-Author: Nelson Chu X-Git-Refname: refs/heads/master X-Git-Oldrev: 7b74583e2ca2f54df341dea1efaf5bf40efb9b0b X-Git-Newrev: c2db2b8a377bd6838cbd668ae12cce835a180093 Message-Id: <20240618082353.CFB7C3882118@sourceware.org> Date: Tue, 18 Jun 2024 08:23:53 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dc2db2b8a377b= d6838cbd668ae12cce835a180093 commit c2db2b8a377bd6838cbd668ae12cce835a180093 Author: Nelson Chu Date: Tue Jun 18 16:15:45 2024 +0800 RISC-V: Fixed typo from smscrind to smcsrind in riscv_implicit_subsets. =20 bfd/ * elfxx-riscv.c (riscv_implicit_subsets): Fixed type from smscr= ind to smcsrind. gas/ * testsuite/gas/riscv/march-imply-smcsrind.d: New testcase. It= fails without applying this patch. Diff: --- bfd/elfxx-riscv.c | 2 +- gas/testsuite/gas/riscv/march-imply-smcsrind.d | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index 275b2ef848a..918bfc1aac5 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -1274,7 +1274,7 @@ static struct riscv_implicit_subset riscv_implicit_su= bsets[] =3D {"zcb", "zca", check_implicit_always}, {"zcmp", "zca", check_implicit_always}, {"smaia", "ssaia", check_implicit_always}, - {"smscrind", "sscsrind", check_implicit_always}, + {"smcsrind", "sscsrind", check_implicit_always}, {"smcntrpmf", "zicsr", check_implicit_always}, {"smstateen", "ssstateen", check_implicit_always}, {"smepmp", "zicsr", check_implicit_always}, diff --git a/gas/testsuite/gas/riscv/march-imply-smcsrind.d b/gas/testsuite= /gas/riscv/march-imply-smcsrind.d new file mode 100644 index 00000000000..e028a067a43 --- /dev/null +++ b/gas/testsuite/gas/riscv/march-imply-smcsrind.d @@ -0,0 +1,6 @@ +#as: -march=3Drv32i_smcsrind -march-attr -misa-spec=3D20191213 +#readelf: -A +#source: empty.s +Attribute Section: riscv +File Attributes + Tag_RISCV_arch: "rv32i2p1_zicsr2p0_smcsrind1p0_sscsrind1p0"