public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Tsukasa OI <research_trasio@irq.a4lg.com>
To: Tsukasa OI <research_trasio@irq.a4lg.com>,
	Nelson Chu <nelson@rivosinc.com>,
	Kito Cheng <kito.cheng@sifive.com>,
	Palmer Dabbelt <palmer@dabbelt.com>
Cc: binutils@sourceware.org
Subject: [PATCH 2/3] RISC-V: Reorganize invalid rounding mode test
Date: Mon, 28 Nov 2022 06:39:33 +0000	[thread overview]
Message-ID: <1a60e4b17f89e7aa94a6a41674f885398e5afd85.1669617534.git.research_trasio@irq.a4lg.com> (raw)
In-Reply-To: <cover.1669617534.git.research_trasio@irq.a4lg.com>

From: Tsukasa OI <research_trasio@irq.a4lg.com>

This commit reorganizes and adds testcases to invalid rounding mode
operand test.  It also fixes a typo in the filename.

gas/ChangeLog:

	* testsuite/gas/riscv/rounding-fail.d: Rename from
	rouding-fail. Add some testcases.
	* testsuite/gas/riscv/rounding-fail.s: Likewise.
	* testsuite/gas/riscv/rounding-fail.l: Likewise.
---
 gas/testsuite/gas/riscv/rouding-fail.d                      | 3 ---
 gas/testsuite/gas/riscv/rouding-fail.s                      | 3 ---
 gas/testsuite/gas/riscv/rounding-fail.d                     | 3 +++
 gas/testsuite/gas/riscv/{rouding-fail.l => rounding-fail.l} | 2 ++
 gas/testsuite/gas/riscv/rounding-fail.s                     | 6 ++++++
 5 files changed, 11 insertions(+), 6 deletions(-)
 delete mode 100644 gas/testsuite/gas/riscv/rouding-fail.d
 delete mode 100644 gas/testsuite/gas/riscv/rouding-fail.s
 create mode 100644 gas/testsuite/gas/riscv/rounding-fail.d
 rename gas/testsuite/gas/riscv/{rouding-fail.l => rounding-fail.l} (52%)
 create mode 100644 gas/testsuite/gas/riscv/rounding-fail.s

diff --git a/gas/testsuite/gas/riscv/rouding-fail.d b/gas/testsuite/gas/riscv/rouding-fail.d
deleted file mode 100644
index 9827b11446db..000000000000
--- a/gas/testsuite/gas/riscv/rouding-fail.d
+++ /dev/null
@@ -1,3 +0,0 @@
-#as: -march=rv32ifd
-#source: rouding-fail.s
-#error_output: rouding-fail.l
diff --git a/gas/testsuite/gas/riscv/rouding-fail.s b/gas/testsuite/gas/riscv/rouding-fail.s
deleted file mode 100644
index d18f53efb503..000000000000
--- a/gas/testsuite/gas/riscv/rouding-fail.s
+++ /dev/null
@@ -1,3 +0,0 @@
-target:
-	fadd.s fa1,fa1,fa1,
-	fadd.d fa1,fa1,fa1,
diff --git a/gas/testsuite/gas/riscv/rounding-fail.d b/gas/testsuite/gas/riscv/rounding-fail.d
new file mode 100644
index 000000000000..0d0a55818caf
--- /dev/null
+++ b/gas/testsuite/gas/riscv/rounding-fail.d
@@ -0,0 +1,3 @@
+#as: -march=rv32ifd
+#source: rounding-fail.s
+#error_output: rounding-fail.l
diff --git a/gas/testsuite/gas/riscv/rouding-fail.l b/gas/testsuite/gas/riscv/rounding-fail.l
similarity index 52%
rename from gas/testsuite/gas/riscv/rouding-fail.l
rename to gas/testsuite/gas/riscv/rounding-fail.l
index ea46e7c2d5aa..00d4d8e40fa6 100644
--- a/gas/testsuite/gas/riscv/rouding-fail.l
+++ b/gas/testsuite/gas/riscv/rounding-fail.l
@@ -1,3 +1,5 @@
 .*: Assembler messages:
 .*: Error: illegal operands `fadd.s fa1,fa1,fa1,'
 .*: Error: illegal operands `fadd.d fa1,fa1,fa1,'
+.*: Error: illegal operands `fadd.s fa1,fa1,fa1,unknown'
+.*: Error: illegal operands `fadd.d fa1,fa1,fa1,unknown'
diff --git a/gas/testsuite/gas/riscv/rounding-fail.s b/gas/testsuite/gas/riscv/rounding-fail.s
new file mode 100644
index 000000000000..6e05cbd410c9
--- /dev/null
+++ b/gas/testsuite/gas/riscv/rounding-fail.s
@@ -0,0 +1,6 @@
+target:
+	# Invalid rounding modes
+	fadd.s fa1,fa1,fa1,
+	fadd.d fa1,fa1,fa1,
+	fadd.s fa1,fa1,fa1,unknown
+	fadd.d fa1,fa1,fa1,unknown
-- 
2.38.1


  parent reply	other threads:[~2022-11-28  6:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-28  6:39 [PATCH 0/3] RISC-V: Support non-standard encodings (on widening FP ops) Tsukasa OI
2022-11-28  6:39 ` [PATCH 1/3] RISC-V: Allocate "various" operand type Tsukasa OI
2022-11-29  2:42   ` Nelson Chu
2022-11-29  3:19     ` Tsukasa OI
2022-11-28  6:39 ` Tsukasa OI [this message]
2022-11-28  6:39 ` [PATCH 3/3] RISC-V: Rounding mode on widening instructions Tsukasa OI

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=1a60e4b17f89e7aa94a6a41674f885398e5afd85.1669617534.git.research_trasio@irq.a4lg.com \
    --to=research_trasio@irq.a4lg.com \
    --cc=binutils@sourceware.org \
    --cc=kito.cheng@sifive.com \
    --cc=nelson@rivosinc.com \
    --cc=palmer@dabbelt.com \
    /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).