From patchwork Mon Jan 13 03:05:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nelson Chu X-Patchwork-Id: 104640 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 EC0383857B96 for ; Mon, 13 Jan 2025 03:06:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC0383857B96 X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from NelsondeMBP.localdomain (36-230-132-154.dynamic-ip.hinet.net [36.230.132.154]) by sourceware.org (Postfix) with ESMTP id 6D3613858D26 for ; Mon, 13 Jan 2025 03:05:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6D3613858D26 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=NelsondeMBP.localdomain ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6D3613858D26 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=36.230.132.154 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736737539; cv=none; b=MG/XbpafjMQ83rVBSxDSi58v7hTg6MqzPOnLQmRXPb8ECmj9Q4xBPz6eMzShqJFuHlw4kqqYzC8S4ZONoYexLXnNmM2X1YWv8+GOF7m1YHg9TpINzOGOtNJivKY8zUB3BGacHfaz7vBOjHXUhnCs0DTTuL1D7ZgmcLtBTI2/We8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736737539; c=relaxed/simple; bh=cBttFchjpBqLdSQAZlXRT8ivL+LB6CCW+Ky1VlMKxT4=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=HX6JIWPVx74kSXj7RfXAY57g8ojSOpiafR8gcoEXmTDFwRP9g9ceGzASUdYBScZHuBTpOj0HSp/rx9Qkt/SWd+RFUcyOE9c+LnCHUfslNJOp71o/k9cCUgJrmCsxPZBOQlFWkLx/ounvtAmJwba+PIsyFHpSHZG5Qye1mSMfyFI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D3613858D26 Received: by NelsondeMBP.localdomain (Postfix, from userid 501) id 671702741460; Mon, 13 Jan 2025 11:05:35 +0800 (CST) From: Nelson Chu To: binutils@sourceware.org, andrew@sifive.com, kito.cheng@sifive.com Cc: Nelson Chu Subject: [committed] RISC-V: Cleanup the imply code and test cases for vendor xsf extensions. Date: Mon, 13 Jan 2025 11:05:34 +0800 Message-Id: <20250113030534.59947-1-nelson@rivosinc.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) MIME-Version: 1.0 X-Spam-Status: No, score=-7.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, RCVD_IN_PBL, 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 --- bfd/elfxx-riscv.c | 1 - gas/testsuite/gas/riscv/imply.d | 3 +++ gas/testsuite/gas/riscv/imply.s | 4 ++++ gas/testsuite/gas/riscv/march-imply-xsfvfnrclipxfqf.d | 6 ------ gas/testsuite/gas/riscv/march-imply-xsfvqmaccdod.d | 6 ------ gas/testsuite/gas/riscv/march-imply-xsfvqmaccqoq.d | 6 ------ 6 files changed, 7 insertions(+), 19 deletions(-) delete mode 100644 gas/testsuite/gas/riscv/march-imply-xsfvfnrclipxfqf.d delete mode 100644 gas/testsuite/gas/riscv/march-imply-xsfvqmaccdod.d delete mode 100644 gas/testsuite/gas/riscv/march-imply-xsfvqmaccqoq.d diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index ccece950664..a609781bc04 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -1188,7 +1188,6 @@ static struct riscv_implicit_subset riscv_implicit_subsets[] = {"xsfvcp", "+zve32x", check_implicit_always}, {"xsfvqmaccqoq", "+zve32x,+zvl256b", check_implicit_always}, - {"xsfvqmaccqoq", "+zvl256b", check_implicit_always}, {"xsfvqmaccdod", "+zve32x,+zvl128b", check_implicit_always}, {"xsfvfnrclipxfqf", "+zve32f", check_implicit_always}, diff --git a/gas/testsuite/gas/riscv/imply.d b/gas/testsuite/gas/riscv/imply.d index 474694d9071..8337bd33e8f 100644 --- a/gas/testsuite/gas/riscv/imply.d +++ b/gas/testsuite/gas/riscv/imply.d @@ -19,6 +19,9 @@ SYMBOL TABLE: [0-9a-f]+ l .text 0+000 \$xrv32i2p1_zaamo1p0_zacas1p0 [0-9a-f]+ l .text 0+000 \$xrv32i2p1_a2p1_zaamo1p0_zalrsc1p0 [0-9a-f]+ l .text 0+000 \$xrv32i2p1_zicsr2p0_zve32x1p0_zvl32b1p0_xsfvcp1p0 +[0-9a-f]+ l .text 0+000 \$xrv32i2p1_zicsr2p0_zve32x1p0_zvl128b1p0_zvl256b1p0_zvl32b1p0_zvl64b1p0_xsfvqmaccqoq1p0 +[0-9a-f]+ l .text 0+000 \$xrv32i2p1_zicsr2p0_zve32x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0_xsfvqmaccdod1p0 +[0-9a-f]+ l .text 0+000 \$xrv32i2p1_f2p2_zicsr2p0_zve32f1p0_zve32x1p0_zvl32b1p0_xsfvfnrclipxfqf1p0 [0-9a-f]+ l .text 0+000 \$xrv32i2p1_f2p2_d2p2_v1p0_zicsr2p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0 [0-9a-f]+ l .text 0+000 \$xrv32i2p1_f2p2_zicsr2p0_zfhmin1p0_zve32f1p0_zve32x1p0_zvfh1p0_zvfhmin1p0_zvl32b1p0 [0-9a-f]+ l .text 0+000 \$xrv32i2p1_f2p2_zicsr2p0_zve32f1p0_zve32x1p0_zvfhmin1p0_zvl32b1p0 diff --git a/gas/testsuite/gas/riscv/imply.s b/gas/testsuite/gas/riscv/imply.s index 790c6f335ee..2ef14ab6713 100644 --- a/gas/testsuite/gas/riscv/imply.s +++ b/gas/testsuite/gas/riscv/imply.s @@ -21,6 +21,10 @@ imply zacas imply a imply xsfvcp +imply xsfvqmaccqoq +imply xsfvqmaccdod +imply xsfvfnrclipxfqf + imply v imply zvfh imply zvfhmin diff --git a/gas/testsuite/gas/riscv/march-imply-xsfvfnrclipxfqf.d b/gas/testsuite/gas/riscv/march-imply-xsfvfnrclipxfqf.d deleted file mode 100644 index e77fee0298c..00000000000 --- a/gas/testsuite/gas/riscv/march-imply-xsfvfnrclipxfqf.d +++ /dev/null @@ -1,6 +0,0 @@ -#as: -march=rv32i_xsfvfnrclipxfqf -march-attr -misa-spec=20191213 -#readelf: -A -#source: empty.s -Attribute Section: riscv -File Attributes - Tag_RISCV_arch: "rv32i2p1_f2p2_zicsr2p0_zve32f1p0_zve32x1p0_zvl32b1p0_xsfvfnrclipxfqf1p0" diff --git a/gas/testsuite/gas/riscv/march-imply-xsfvqmaccdod.d b/gas/testsuite/gas/riscv/march-imply-xsfvqmaccdod.d deleted file mode 100644 index 47e91f89367..00000000000 --- a/gas/testsuite/gas/riscv/march-imply-xsfvqmaccdod.d +++ /dev/null @@ -1,6 +0,0 @@ -#as: -march=rv32i_xsfvqmaccdod -march-attr -misa-spec=20191213 -#readelf: -A -#source: empty.s -Attribute Section: riscv -File Attributes - Tag_RISCV_arch: "rv32i2p1_zicsr2p0_zve32x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0_xsfvqmaccdod1p0" diff --git a/gas/testsuite/gas/riscv/march-imply-xsfvqmaccqoq.d b/gas/testsuite/gas/riscv/march-imply-xsfvqmaccqoq.d deleted file mode 100644 index 784a8acd09d..00000000000 --- a/gas/testsuite/gas/riscv/march-imply-xsfvqmaccqoq.d +++ /dev/null @@ -1,6 +0,0 @@ -#as: -march=rv32i_xsfvqmaccqoq -march-attr -misa-spec=20191213 -#readelf: -A -#source: empty.s -Attribute Section: riscv -File Attributes - Tag_RISCV_arch: "rv32i2p1_zicsr2p0_zve32x1p0_zvl128b1p0_zvl256b1p0_zvl32b1p0_zvl64b1p0_xsfvqmaccqoq1p0"