aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-09-30 10:20:17 +0200
committerJan Beulich <jbeulich@suse.com>2022-09-30 10:20:17 +0200
commitd988b231b0db7b3d6a1e21706bb9920b734f15cf (patch)
treec7c2c112aa786cebeac56cc60fc28bfc296dffc7 /gas
parent839189bc932ea02c9647a3ad829dda72f8a9562c (diff)
downloadfsf-binutils-gdb-d988b231b0db7b3d6a1e21706bb9920b734f15cf.zip
fsf-binutils-gdb-d988b231b0db7b3d6a1e21706bb9920b734f15cf.tar.gz
fsf-binutils-gdb-d988b231b0db7b3d6a1e21706bb9920b734f15cf.tar.bz2
RISC-V: drop stray INSN_ALIAS flags
FENCE.TSO isn't an alias. ZIP and UNZIP in the long run likely are, but presently they aren't. This fixes disassembly of these insns with -Mno-aliases.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/riscv/fence-tso-na.d12
-rw-r--r--gas/testsuite/gas/riscv/zbkb-32-na.d23
2 files changed, 35 insertions, 0 deletions
diff --git a/gas/testsuite/gas/riscv/fence-tso-na.d b/gas/testsuite/gas/riscv/fence-tso-na.d
new file mode 100644
index 0000000..5dee416
--- /dev/null
+++ b/gas/testsuite/gas/riscv/fence-tso-na.d
@@ -0,0 +1,12 @@
+#as: -march=rv32ic
+#source: fence-tso.s
+#objdump: -dr -Mno-aliases
+
+.*:[ ]+file format .*
+
+
+Disassembly of section .text:
+
+0+000 <target>:
+[ ]+[0-9a-f]+:[ ]+8330000f[ ]+fence.tso
+#pass
diff --git a/gas/testsuite/gas/riscv/zbkb-32-na.d b/gas/testsuite/gas/riscv/zbkb-32-na.d
new file mode 100644
index 0000000..a7b67ca
--- /dev/null
+++ b/gas/testsuite/gas/riscv/zbkb-32-na.d
@@ -0,0 +1,23 @@
+#as: -march=rv32i_zbkb
+#source: zbkb-32.s
+#objdump: -d -Mno-aliases
+
+.*:[ ]+file format .*
+
+
+Disassembly of section .text:
+
+0+000 <target>:
+[ ]+[0-9a-f]+:[ ]+60c5d533[ ]+ror[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+60c59533[ ]+rol[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+6025d513[ ]+rori[ ]+a0,a1,0x2
+[ ]+[0-9a-f]+:[ ]+40c5f533[ ]+andn[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+40c5e533[ ]+orn[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+40c5c533[ ]+xnor[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+08c5c533[ ]+pack[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+08c5f533[ ]+packh[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+68755513[ ]+brev8[ ]+a0,a0
+[ ]+[0-9a-f]+:[ ]+69855513[ ]+rev8[ ]+a0,a0
+[ ]+[0-9a-f]+:[ ]+08f51513[ ]+zip[ ]+a0,a0
+[ ]+[0-9a-f]+:[ ]+08f55513[ ]+unzip[ ]+a0,a0
+#pass