From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NelsondeMacBook-Pro.local (60-250-206-252.hinet-ip.hinet.net [60.250.206.252]) by sourceware.org (Postfix) with ESMTP id 0ED143882118 for ; Tue, 18 Jun 2024 08:24:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0ED143882118 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=NelsondeMacBook-Pro.local ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0ED143882118 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=60.250.206.252 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718699080; cv=none; b=WFw0xHWeHz0AlDwhLr46MGarQP46RM6HFN9k2r7pEJNAm6zSaKLT7KyeLVoZb2gTBOuPuJA9tOXe4HjO/Svk5EqyLSe7Xr80PjC78jGtASPoIROYe9fOXR7GZVhdadLdbcgYj2NHmxcWUKuepMYWjr7b5ewSDEGi/BD3iVpe2CM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718699080; c=relaxed/simple; bh=oxO2pBlUz/e3eQFg/eWYw2kf9IF+Ej4sxH+2e9ss0NQ=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=sNS3zDAWNjezoz5ah9r8Gq8/tYmH7l1fEW2KXxUHUpe2w0EJvQ3krsZOWJlO6s7PYnqGZAZXofgIrP7NL9ddcd0bNhopGDuQ+Tuq7LhISTiPURg52ux4g4RTOchOkHHZ/XZCEM8o+e/jJgdgcX1b//2JYK1zG7NkQWKLTzpaQUc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by NelsondeMacBook-Pro.local (Postfix, from userid 501) id 626781D1E896; Tue, 18 Jun 2024 16:24:29 +0800 (CST) From: Nelson Chu To: binutils@sourceware.org Cc: nelson.rivosinc.com@NelsondeMacBook-Pro.local, Nelson Chu Subject: [committed] RISC-V: Fixed typo from smscrind to smcsrind in riscv_implicit_subsets. Date: Tue, 18 Jun 2024 16:24:28 +0800 Message-Id: <20240618082428.64897-1-nelson@rivosinc.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,KHOP_HELO_FCRDNS,NO_DNS_FOR_FROM,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: bfd/ * elfxx-riscv.c (riscv_implicit_subsets): Fixed type from smscrind to smcsrind. gas/ * testsuite/gas/riscv/march-imply-smcsrind.d: New testcase. It fails without applying this patch. --- bfd/elfxx-riscv.c | 2 +- gas/testsuite/gas/riscv/march-imply-smcsrind.d | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 gas/testsuite/gas/riscv/march-imply-smcsrind.d 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_subsets[] = {"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=rv32i_smcsrind -march-attr -misa-spec=20191213 +#readelf: -A +#source: empty.s +Attribute Section: riscv +File Attributes + Tag_RISCV_arch: "rv32i2p1_zicsr2p0_smcsrind1p0_sscsrind1p0" -- 2.39.3 (Apple Git-146)