summaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2017-12-13 14:59:42 -0800
committerJim Wilson <jimw@sifive.com>2017-12-13 14:59:42 -0800
commit25982ee0222196381863a17dc135fc1d2763b385 (patch)
treef3cbe90c0fbeffe0f4f10afb6b896ae92fdda8a3 /gas
parentb89641bab55496e52094282fabe146289c57b6d1 (diff)
Add missing RISC-V fsrmi and fsflagsi instructions.
PR 22599 gas/ * testsuite/gas/riscv/fsxxi.d, testsuite/gas/riscv/fsxxi.s: New. opcodes/ * riscv-opc.c (riscv_opcodes) <fsrmi, fsflagsi>: New.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/testsuite/gas/riscv/fsxxi.d13
-rw-r--r--gas/testsuite/gas/riscv/fsxxi.s4
3 files changed, 22 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index dcc4cb8ea9..8b24b65e43 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2017-12-13 Jim Wilson <jimw@sifive.com>
+
+ PR 22599
+ * testsuite/gas/riscv/fsxxi.d, testsuite/gas/riscv/fsxxi.s: New.
+
2017-12-13 Dimitar Dimitrov <dimitar@dinux.eu>
* testsuite/gas/pru/extern.s: New test for print of U16_PMEMM
diff --git a/gas/testsuite/gas/riscv/fsxxi.d b/gas/testsuite/gas/riscv/fsxxi.d
new file mode 100644
index 0000000000..2e03a20f82
--- /dev/null
+++ b/gas/testsuite/gas/riscv/fsxxi.d
@@ -0,0 +1,13 @@
+#as:
+#objdump: -dr
+
+.*:[ ]+file format .*
+
+
+Disassembly of section .text:
+
+0+000 <.text>:
+[ ]+0:[ ]+002fd573[ ]+fsrmi[ ]+a0,31
+[ ]+4:[ ]+002f5073[ ]+fsrmi[ ]+zero,30
+[ ]+8:[ ]+001ed773[ ]+fsflagsi[ ]+a4,29
+[ ]+c:[ ]+001e5073[ ]+fsflagsi[ ]+zero,28
diff --git a/gas/testsuite/gas/riscv/fsxxi.s b/gas/testsuite/gas/riscv/fsxxi.s
new file mode 100644
index 0000000000..e42d7863d9
--- /dev/null
+++ b/gas/testsuite/gas/riscv/fsxxi.s
@@ -0,0 +1,4 @@
+ fsrmi x10, 0x1f
+ fsrmi 0x1e
+ fsflagsi x14, 0x1d
+ fsflagsi 0x1c