From patchwork Fri Sep 12 03:57:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nelson Chu X-Patchwork-Id: 120121 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4AC773857B8F for ; Fri, 12 Sep 2025 03:58:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4AC773857B8F X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from MacBookPro.localdomain (36-230-178-168.dynamic-ip.hinet.net [36.230.178.168]) by sourceware.org (Postfix) with ESMTP id CEA34385801D for ; Fri, 12 Sep 2025 03:57:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CEA34385801D Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=MacBookPro.localdomain ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CEA34385801D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=36.230.178.168 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757649452; cv=none; b=Jl1NER9X6VgAyNvX2Ey2kO+SXf8Mlwtxq3mWSONLNekUpi6124ARb1grv/uZHSv/8H4Jv89DsUFiPqHvMj9gUi5VS8HTPJfYPW5+n+5RrvYgDcRAEfOM9joDad6/pZVeaJRdOzFh0qHnxYju2ZRzc90ihUdmRt+Phs/tnPew+2I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757649452; c=relaxed/simple; bh=7LMWE1jxSnDSkcYw7DODaY3uk7nCktOUizbmTUoSIe4=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=tRrQd48c7kut04FruEUhkvn51/i2V+ikDthOxUxmdZyf6cJHpPHGNrv9BKWHjWEXzKNpAEkvgrjo6qKYY88LqFon03Bc7DJWo35Xk92PS0lhdB5OJXhiKpLkjgvbAb17EQzPKSNL12m6VTv8CFFi09Z0nkD0Rz5jdfy3KUNrwZ0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CEA34385801D Received: by MacBookPro.localdomain (Postfix, from userid 501) id 1BB4438CAF4F; Fri, 12 Sep 2025 11:57:28 +0800 (CST) From: Nelson Chu To: binutils@sourceware.org Cc: Nelson Chu Subject: [committed] RISC-V: Fixed more testcases for --with-arch and --with-abi Date: Fri, 12 Sep 2025 11:57:27 +0800 Message-Id: <20250912035727.54191-1-nelson@rivosinc.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) MIME-Version: 1.0 X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KHOP_HELO_FCRDNS, LOCAL_AUTHENTICATION_FAIL_DMARC, NO_DNS_FOR_FROM, RCVD_IN_PBL, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, RDNS_DYNAMIC, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org Same as cabae1c1c87d5f4ba28b7fdafe735b7c6207fb78 --- gas/testsuite/gas/riscv/attribute-11.s | 1 + gas/testsuite/gas/riscv/csr-fail-nonexistent.s | 1 + gas/testsuite/gas/riscv/fmv.x.s | 1 + gas/testsuite/gas/riscv/fsxxi.s | 1 + ld/testsuite/ld-riscv-elf/shared-lib-nopic-02.d | 2 +- 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gas/testsuite/gas/riscv/attribute-11.s b/gas/testsuite/gas/riscv/attribute-11.s index 81367da4d49..ef4e7ff68bd 100644 --- a/gas/testsuite/gas/riscv/attribute-11.s +++ b/gas/testsuite/gas/riscv/attribute-11.s @@ -1,3 +1,4 @@ # The csr is explicit used, so we need to generate the priv spec # attributes even if the attributes are not set. + .option arch, +zicsr csrr a0, 0x0 diff --git a/gas/testsuite/gas/riscv/csr-fail-nonexistent.s b/gas/testsuite/gas/riscv/csr-fail-nonexistent.s index 6e6d27e44a7..523cbd3cb77 100644 --- a/gas/testsuite/gas/riscv/csr-fail-nonexistent.s +++ b/gas/testsuite/gas/riscv/csr-fail-nonexistent.s @@ -1 +1,2 @@ + .option arch, +zicsr csrr a0, nonexistent diff --git a/gas/testsuite/gas/riscv/fmv.x.s b/gas/testsuite/gas/riscv/fmv.x.s index a16feda2868..83f982565b0 100644 --- a/gas/testsuite/gas/riscv/fmv.x.s +++ b/gas/testsuite/gas/riscv/fmv.x.s @@ -1,3 +1,4 @@ +.option arch, +f fmv.x.w a2, fs7 fmv.x.s a2, fs7 fmv.w.x ft1, a6 diff --git a/gas/testsuite/gas/riscv/fsxxi.s b/gas/testsuite/gas/riscv/fsxxi.s index e42d7863d95..67ba98b8e0c 100644 --- a/gas/testsuite/gas/riscv/fsxxi.s +++ b/gas/testsuite/gas/riscv/fsxxi.s @@ -1,3 +1,4 @@ + .option arch, +f fsrmi x10, 0x1f fsrmi 0x1e fsflagsi x14, 0x1d diff --git a/ld/testsuite/ld-riscv-elf/shared-lib-nopic-02.d b/ld/testsuite/ld-riscv-elf/shared-lib-nopic-02.d index f866d017362..67ac4392174 100644 --- a/ld/testsuite/ld-riscv-elf/shared-lib-nopic-02.d +++ b/ld/testsuite/ld-riscv-elf/shared-lib-nopic-02.d @@ -1,4 +1,4 @@ #source: shared-lib-nopic-02.s #as: #ld: -shared -#error: .*relocation R_RISCV_JAL against `foo_default' which may bind externally can not be used when making a shared object; recompile with -fPIC +#error: .*relocation (R_RISCV_RVC_JUMP|R_RISCV_JAL) against `foo_default' which may bind externally can not be used when making a shared object; recompile with -fPIC