public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nelson Chu <nelson@rivosinc.com>
To: binutils@sourceware.org
Cc: Nelson Chu <nelson@rivosinc.com>
Subject: [committed] RISC-V: Tidy smstateen and ssstateen testcases.
Date: Mon, 18 Mar 2024 13:37:32 +0800	[thread overview]
Message-ID: <20240318053732.12402-1-nelson@rivosinc.com> (raw)

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 <target>:
-[ 	]+[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 <target>:
-[ 	]+[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
-- 
2.39.3 (Apple Git-146)


                 reply	other threads:[~2024-03-18  5:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240318053732.12402-1-nelson@rivosinc.com \
    --to=nelson@rivosinc.com \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).