From patchwork Mon Mar 18 05:37:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nelson Chu X-Patchwork-Id: 87300 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 840CB3858C5F for ; Mon, 18 Mar 2024 05:38:04 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from NelsondeMBP.localdomain (36-230-147-76.dynamic-ip.hinet.net [36.230.147.76]) by sourceware.org (Postfix) with ESMTP id 7DF693858D37 for ; Mon, 18 Mar 2024 05:37:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7DF693858D37 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 7DF693858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=36.230.147.76 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710740260; cv=none; b=l6nHe2aQldMW+wxJdYZFS4lA1qZBJ28dL7wNyOSG2EC0029mtioRvvifJqdoyrlXU6vXwAZ2IGYw+qISLnIdPZdids+GSbkRu8bqUYr5yOSodWaunuq6BteWDn9m4ff0f74A+qDZ860onvdkp5YSjLiHWz5hkfPKpuXhR42Gs8Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710740260; c=relaxed/simple; bh=oQF2azVDCxAEAGObpDyJ2Djb7hjFdBWMZ71G0k6i7b0=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=mm6iom/wwtmToeXnXoIMWs2CANB82O67Pp4LHT4uQXRkP1jrQy7NZtVMgPP5u2HAQz9bc4R50/OO88Ak5sPFNe78n8PHt8LcVq0YkDeng3e9daB5q+O9WF8GUvXrMb/L+wJXBMLaF9+847h6aFYOGCYRHSUx9Qj8DkM+rFrZj94= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by NelsondeMBP.localdomain (Postfix, from userid 501) id 4B7D7180116C; Mon, 18 Mar 2024 13:37:34 +0800 (CST) From: Nelson Chu To: binutils@sourceware.org Cc: Nelson Chu Subject: [committed] RISC-V: Tidy smstateen and ssstateen testcases. Date: Mon, 18 Mar 2024 13:37:32 +0800 Message-Id: <20240318053732.12402-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.8 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, RCVD_IN_SORBS_DUL, 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 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 gas/ * testsuite/gas/riscv/march-imply-smstateen.d: Added. * testsuite/gas/riscv/smstateen-csr-s.d: Removed. * testsuite/gas/riscv/ssstateen-csr.d: Likewise. * testsuite/gas/riscv/ssstateen-csr.s: Likewise. --- .../gas/riscv/march-imply-smstateen.d | 6 +++++ gas/testsuite/gas/riscv/smstateen-csr-s.d | 22 ------------------- gas/testsuite/gas/riscv/ssstateen-csr.d | 22 ------------------- gas/testsuite/gas/riscv/ssstateen-csr.s | 13 ----------- 4 files changed, 6 insertions(+), 57 deletions(-) create mode 100644 gas/testsuite/gas/riscv/march-imply-smstateen.d delete mode 100644 gas/testsuite/gas/riscv/smstateen-csr-s.d delete mode 100644 gas/testsuite/gas/riscv/ssstateen-csr.d delete mode 100644 gas/testsuite/gas/riscv/ssstateen-csr.s diff --git a/gas/testsuite/gas/riscv/march-imply-smstateen.d b/gas/testsuite/gas/riscv/march-imply-smstateen.d new file mode 100644 index 00000000000..2db14fd612b --- /dev/null +++ b/gas/testsuite/gas/riscv/march-imply-smstateen.d @@ -0,0 +1,6 @@ +#as: -march=rv32i_smstateen -march-attr -misa-spec=20191213 +#readelf: -A +#source: empty.s +Attribute Section: riscv +File Attributes + Tag_RISCV_arch: "rv32i2p1_zicsr2p0_smstateen1p0_ssstateen1p0" diff --git a/gas/testsuite/gas/riscv/smstateen-csr-s.d b/gas/testsuite/gas/riscv/smstateen-csr-s.d deleted file mode 100644 index 44b6dd66373..00000000000 --- a/gas/testsuite/gas/riscv/smstateen-csr-s.d +++ /dev/null @@ -1,22 +0,0 @@ -#as: -march=rv32ih_smstateen -mcsr-check -mpriv-spec=1.12 -#source: ssstateen-csr.s -#objdump: -dr - -.*:[ ]+file format .* - - -Disassembly of section .text: - -0+000 : -[ ]+[0-9a-f]+:[ ]+10c02573[ ]+csrr[ ]+a0,sstateen0 -[ ]+[0-9a-f]+:[ ]+10d02573[ ]+csrr[ ]+a0,sstateen1 -[ ]+[0-9a-f]+:[ ]+10e02573[ ]+csrr[ ]+a0,sstateen2 -[ ]+[0-9a-f]+:[ ]+10f02573[ ]+csrr[ ]+a0,sstateen3 -[ ]+[0-9a-f]+:[ ]+60c02573[ ]+csrr[ ]+a0,hstateen0 -[ ]+[0-9a-f]+:[ ]+60d02573[ ]+csrr[ ]+a0,hstateen1 -[ ]+[0-9a-f]+:[ ]+60e02573[ ]+csrr[ ]+a0,hstateen2 -[ ]+[0-9a-f]+:[ ]+60f02573[ ]+csrr[ ]+a0,hstateen3 -[ ]+[0-9a-f]+:[ ]+61c02573[ ]+csrr[ ]+a0,hstateen0h -[ ]+[0-9a-f]+:[ ]+61d02573[ ]+csrr[ ]+a0,hstateen1h -[ ]+[0-9a-f]+:[ ]+61e02573[ ]+csrr[ ]+a0,hstateen2h -[ ]+[0-9a-f]+:[ ]+61f02573[ ]+csrr[ ]+a0,hstateen3h diff --git a/gas/testsuite/gas/riscv/ssstateen-csr.d b/gas/testsuite/gas/riscv/ssstateen-csr.d deleted file mode 100644 index 29b286a6353..00000000000 --- a/gas/testsuite/gas/riscv/ssstateen-csr.d +++ /dev/null @@ -1,22 +0,0 @@ -#as: -march=rv32ih_ssstateen -mcsr-check -mpriv-spec=1.12 -#source: ssstateen-csr.s -#objdump: -dr - -.*:[ ]+file format .* - - -Disassembly of section .text: - -0+000 : -[ ]+[0-9a-f]+:[ ]+10c02573[ ]+csrr[ ]+a0,sstateen0 -[ ]+[0-9a-f]+:[ ]+10d02573[ ]+csrr[ ]+a0,sstateen1 -[ ]+[0-9a-f]+:[ ]+10e02573[ ]+csrr[ ]+a0,sstateen2 -[ ]+[0-9a-f]+:[ ]+10f02573[ ]+csrr[ ]+a0,sstateen3 -[ ]+[0-9a-f]+:[ ]+60c02573[ ]+csrr[ ]+a0,hstateen0 -[ ]+[0-9a-f]+:[ ]+60d02573[ ]+csrr[ ]+a0,hstateen1 -[ ]+[0-9a-f]+:[ ]+60e02573[ ]+csrr[ ]+a0,hstateen2 -[ ]+[0-9a-f]+:[ ]+60f02573[ ]+csrr[ ]+a0,hstateen3 -[ ]+[0-9a-f]+:[ ]+61c02573[ ]+csrr[ ]+a0,hstateen0h -[ ]+[0-9a-f]+:[ ]+61d02573[ ]+csrr[ ]+a0,hstateen1h -[ ]+[0-9a-f]+:[ ]+61e02573[ ]+csrr[ ]+a0,hstateen2h -[ ]+[0-9a-f]+:[ ]+61f02573[ ]+csrr[ ]+a0,hstateen3h diff --git a/gas/testsuite/gas/riscv/ssstateen-csr.s b/gas/testsuite/gas/riscv/ssstateen-csr.s deleted file mode 100644 index 82707a4625b..00000000000 --- a/gas/testsuite/gas/riscv/ssstateen-csr.s +++ /dev/null @@ -1,13 +0,0 @@ -target: - csrr a0, sstateen0 - csrr a0, sstateen1 - csrr a0, sstateen2 - csrr a0, sstateen3 - csrr a0, hstateen0 - csrr a0, hstateen1 - csrr a0, hstateen2 - csrr a0, hstateen3 - csrr a0, hstateen0h - csrr a0, hstateen1h - csrr a0, hstateen2h - csrr a0, hstateen3h