aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-09-30 10:19:00 +0200
committerJan Beulich <jbeulich@suse.com>2022-09-30 10:19:00 +0200
commit839189bc932ea02c9647a3ad829dda72f8a9562c (patch)
treeaf1a523bf81dedf1f65d3b5aa531b6252ecd6ffd /gas
parent79d635fc64ba9ca97c24c0c52c9924dba77e9527 (diff)
downloadgdb-839189bc932ea02c9647a3ad829dda72f8a9562c.zip
gdb-839189bc932ea02c9647a3ad829dda72f8a9562c.tar.gz
gdb-839189bc932ea02c9647a3ad829dda72f8a9562c.tar.bz2
RISC-V: re-arrange opcode table for consistent alias handling
For disassembly to pick up aliases in favor of underlying insns (helping readability in the common case), the aliases need to come ahead of the "base" insns. Slightly more code movement is needed because of insns with the same name needing to stay next to each other. Note that the "rorw" alias entry also has the missing INSN_ALIAS added here. Clone a few testcases to exercise -Mno-aliases some more, better covering the differences between the default and that disassembly mode.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/riscv/b-ext-64-na.d72
-rw-r--r--gas/testsuite/gas/riscv/b-ext-64.d48
-rw-r--r--gas/testsuite/gas/riscv/b-ext-na.d51
-rw-r--r--gas/testsuite/gas/riscv/b-ext.d28
-rw-r--r--gas/testsuite/gas/riscv/c-zero-imm-na.d24
-rw-r--r--gas/testsuite/gas/riscv/c-zero-imm.d12
-rw-r--r--gas/testsuite/gas/riscv/c-zero-reg.d2
-rw-r--r--gas/testsuite/gas/riscv/csr-insns-pseudo-zfinx.d6
-rw-r--r--gas/testsuite/gas/riscv/csr-insns-pseudo.d6
-rw-r--r--gas/testsuite/gas/riscv/ext-32.d48
-rw-r--r--gas/testsuite/gas/riscv/ext-64.d64
-rw-r--r--gas/testsuite/gas/riscv/insn-na.d69
-rw-r--r--gas/testsuite/gas/riscv/insn.d12
-rw-r--r--gas/testsuite/gas/riscv/k-ext-64.d4
-rw-r--r--gas/testsuite/gas/riscv/k-ext.d2
-rw-r--r--gas/testsuite/gas/riscv/li32.d8
-rw-r--r--gas/testsuite/gas/riscv/li64.d56
-rw-r--r--gas/testsuite/gas/riscv/lla32.d6
-rw-r--r--gas/testsuite/gas/riscv/lla64.d10
-rw-r--r--gas/testsuite/gas/riscv/zbkb-32.d2
-rw-r--r--gas/testsuite/gas/riscv/zbkb-64.d4
21 files changed, 375 insertions, 159 deletions
diff --git a/gas/testsuite/gas/riscv/b-ext-64-na.d b/gas/testsuite/gas/riscv/b-ext-64-na.d
new file mode 100644
index 0000000..ec5acd0
--- /dev/null
+++ b/gas/testsuite/gas/riscv/b-ext-64-na.d
@@ -0,0 +1,72 @@
+#as: -march=rv64i_zba_zbb_zbc_zbs
+#source: b-ext-64.s
+#objdump: -d -Mno-aliases
+
+.*:[ ]+file format .*
+
+
+Disassembly of section .text:
+
+0+000 <target>:
+[ ]+[0-9a-f]+:[ ]+60051513[ ]+clz[ ]+a0,a0
+[ ]+[0-9a-f]+:[ ]+60151513[ ]+ctz[ ]+a0,a0
+[ ]+[0-9a-f]+:[ ]+60251513[ ]+cpop[ ]+a0,a0
+[ ]+[0-9a-f]+:[ ]+0ac5c533[ ]+min[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+0ac5d533[ ]+minu[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+0ac5e533[ ]+max[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+0ac5f533[ ]+maxu[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+60451513[ ]+sext\.b[ ]+a0,a0
+[ ]+[0-9a-f]+:[ ]+60551513[ ]+sext\.h[ ]+a0,a0
+[ ]+[0-9a-f]+:[ ]+0805453b[ ]+zext\.h[ ]+a0,a0
+[ ]+[0-9a-f]+:[ ]+40c5f533[ ]+andn[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+40c5e533[ ]+orn[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+40c5c533[ ]+xnor[ ]+a0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0-9a-f]+:[ ]+29f59513[ ]+bseti[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+69f59513[ ]+binvi[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+49f5d513[ ]+bexti[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+4bf59513[ ]+bclri[ ]+a0,a1,0x3f
+[ ]+[0-9a-f]+:[ ]+2bf59513[ ]+bseti[ ]+a0,a1,0x3f
+[ ]+[0-9a-f]+:[ ]+6bf59513[ ]+binvi[ ]+a0,a1,0x3f
+[ ]+[0-9a-f]+:[ ]+4bf5d513[ ]+bexti[ ]+a0,a1,0x3f
diff --git a/gas/testsuite/gas/riscv/b-ext-64.d b/gas/testsuite/gas/riscv/b-ext-64.d
index 9b6e6b7..f88fef9 100644
--- a/gas/testsuite/gas/riscv/b-ext-64.d
+++ b/gas/testsuite/gas/riscv/b-ext-64.d
@@ -23,8 +23,8 @@ Disassembly of section .text:
[ ]+30:[ ]+40c5c533[ ]+xnor[ ]+a0,a1,a2
[ ]+34:[ ]+60c59533[ ]+rol[ ]+a0,a1,a2
[ ]+38:[ ]+60c5d533[ ]+ror[ ]+a0,a1,a2
-[ ]+3c:[ ]+6025d513[ ]+rori[ ]+a0,a1,0x2
-[ ]+40:[ ]+6025d513[ ]+rori[ ]+a0,a1,0x2
+[ ]+3c:[ ]+6025d513[ ]+ror[ ]+a0,a1,0x2
+[ ]+40:[ ]+6025d513[ ]+ror[ ]+a0,a1,0x2
[ ]+44:[ ]+6b855513[ ]+rev8[ ]+a0,a0
[ ]+48:[ ]+28755513[ ]+orc.b[ ]+a0,a0
[ ]+4c:[ ]+20c5a533[ ]+sh1add[ ]+a0,a1,a2
@@ -38,35 +38,35 @@ Disassembly of section .text:
[ ]+6c:[ ]+6025151b[ ]+cpopw[ ]+a0,a0
[ ]+70:[ ]+60c5953b[ ]+rolw[ ]+a0,a1,a2
[ ]+74:[ ]+60c5d53b[ ]+rorw[ ]+a0,a1,a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]+a0,a1,0x3f
-[ ]+[0-9a-f]+:[ ]+6bf59513[ ]+binvi[ ]+a0,a1,0x3f
-[ ]+[0-9a-f]+:[ ]+4bf5d513[ ]+bexti[ ]+a0,a1,0x3f
+[ ]+[0-9a-f]+:[ ]+49f59513[ ]+bclr[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+29f59513[ ]+bset[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+69f59513[ ]+binv[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+49f5d513[ ]+bext[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+4bf59513[ ]+bclr[ ]+a0,a1,0x3f
+[ ]+[0-9a-f]+:[ ]+2bf59513[ ]+bset[ ]+a0,a1,0x3f
+[ ]+[0-9a-f]+:[ ]+6bf59513[ ]+binv[ ]+a0,a1,0x3f
+[ ]+[0-9a-f]+:[ ]+4bf5d513[ ]+bext[ ]+a0,a1,0x3f
diff --git a/gas/testsuite/gas/riscv/b-ext-na.d b/gas/testsuite/gas/riscv/b-ext-na.d
new file mode 100644
index 0000000..0c80a37
--- /dev/null
+++ b/gas/testsuite/gas/riscv/b-ext-na.d
@@ -0,0 +1,51 @@
+#as: -march=rv32i_zba_zbb_zbc_zbs
+#source: b-ext.s
+#objdump: -d -Mno-aliases
+
+.*:[ ]+file format .*
+
+
+Disassembly of section .text:
+
+0+000 <target>:
+[ ]+[0-9a-f]+:[ ]+60051513[ ]+clz[ ]+a0,a0
+[ ]+[0-9a-f]+:[ ]+60151513[ ]+ctz[ ]+a0,a0
+[ ]+[0-9a-f]+:[ ]+60251513[ ]+cpop[ ]+a0,a0
+[ ]+[0-9a-f]+:[ ]+0ac5c533[ ]+min[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+0ac5d533[ ]+minu[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+0ac5e533[ ]+max[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]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+[0-9a-f]+:[ ]+29f59513[ ]+bseti[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+68059513[ ]+binvi[ ]+a0,a1,0x0
+[ ]+[0-9a-f]+:[ ]+69f59513[ ]+binvi[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+4805d513[ ]+bexti[ ]+a0,a1,0x0
+[ ]+[0-9a-f]+:[ ]+49f5d513[ ]+bexti[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+48c59533[ ]+bclr[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+28c59533[ ]+bset[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+68c59533[ ]+binv[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+48c5d533[ ]+bext[ ]+a0,a1,a2
+[ ]+[0-9a-f]+:[ ]+49f59513[ ]+bclri[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+29f59513[ ]+bseti[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+69f59513[ ]+binvi[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+49f5d513[ ]+bexti[ ]+a0,a1,0x1f
diff --git a/gas/testsuite/gas/riscv/b-ext.d b/gas/testsuite/gas/riscv/b-ext.d
index c1c5f91..6bbbeb0 100644
--- a/gas/testsuite/gas/riscv/b-ext.d
+++ b/gas/testsuite/gas/riscv/b-ext.d
@@ -23,8 +23,8 @@ Disassembly of section .text:
[ ]+30:[ ]+40c5c533[ ]+xnor[ ]+a0,a1,a2
[ ]+34:[ ]+60c59533[ ]+rol[ ]+a0,a1,a2
[ ]+38:[ ]+60c5d533[ ]+ror[ ]+a0,a1,a2
-[ ]+3c:[ ]+6025d513[ ]+rori[ ]+a0,a1,0x2
-[ ]+40:[ ]+6025d513[ ]+rori[ ]+a0,a1,0x2
+[ ]+3c:[ ]+6025d513[ ]+ror[ ]+a0,a1,0x2
+[ ]+40:[ ]+6025d513[ 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]+bext[ ]+a0,a1,0x1f
[ ]+[0-9a-f]+:[ ]+48c59533[ ]+bclr[ ]+a0,a1,a2
[ ]+[0-9a-f]+:[ ]+28c59533[ ]+bset[ ]+a0,a1,a2
[ ]+[0-9a-f]+:[ ]+68c59533[ ]+binv[ ]+a0,a1,a2
[ ]+[0-9a-f]+:[ ]+48c5d533[ ]+bext[ ]+a0,a1,a2
-[ ]+[0-9a-f]+:[ ]+49f59513[ ]+bclri[ ]+a0,a1,0x1f
-[ ]+[0-9a-f]+:[ ]+29f59513[ ]+bseti[ ]+a0,a1,0x1f
-[ ]+[0-9a-f]+:[ ]+69f59513[ ]+binvi[ ]+a0,a1,0x1f
-[ ]+[0-9a-f]+:[ ]+49f5d513[ ]+bexti[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+49f59513[ ]+bclr[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+29f59513[ ]+bset[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+69f59513[ ]+binv[ ]+a0,a1,0x1f
+[ ]+[0-9a-f]+:[ ]+49f5d513[ ]+bext[ ]+a0,a1,0x1f
diff --git a/gas/testsuite/gas/riscv/c-zero-imm-na.d b/gas/testsuite/gas/riscv/c-zero-imm-na.d
new file mode 100644
index 0000000..d33e0d7
--- /dev/null
+++ b/gas/testsuite/gas/riscv/c-zero-imm-na.d
@@ -0,0 +1,24 @@
+#as:
+#source: c-zero-imm.s
+#objdump: -dr -Mno-aliases
+
+.*:[ ]+file format .*
+
+
+Disassembly of section .text:
+
+0+000 <.text>:
+[ ]+[0-9a-f]+:[ ]+4501[ ]+c\.li[ ]+a0,0
+[ ]+[0-9a-f]+:[ ]+4581[ ]+c\.li[ ]+a1,0
+[ ]+[0-9a-f]+:[ ]+8a01[ ]+c\.andi[ ]+a2,0
+[ ]+[0-9a-f]+:[ ]+8a81[ ]+c\.andi[ ]+a3,0
+[ ]+[0-9a-f]+:[ ]+0001[ ]+c\.addi[ ]+zero,0
+[ ]+[0-9a-f]+:[ ]+873a[ ]+c\.mv[ ]+a4,a4
+[ ]+[0-9a-f]+:[ ]+0781[ ]+c\.addi[ ]+a5,0
+[ ]+[0-9a-f]+:[ ]+00051513[ ]+slli[ ]+a0,a0,0x0
+[ ]+[0-9a-f]+:[ ]+0005d593[ ]+srli[ ]+a1,a1,0x0
+[ ]+[0-9a-f]+:[ ]+40065613[ ]+srai[ ]+a2,a2,0x0
+[ ]+[0-9a-f]+:[ ]+0682[ ]+c\.slli64[ ]+a3
+[ ]+[0-9a-f]+:[ ]+8301[ ]+c\.srli64[ ]+a4
+[ ]+[0-9a-f]+:[ ]+8781[ ]+c\.srai64[ ]+a5
+#...
diff --git a/gas/testsuite/gas/riscv/c-zero-imm.d b/gas/testsuite/gas/riscv/c-zero-imm.d
index 1f3e485..d4eebbd 100644
--- a/gas/testsuite/gas/riscv/c-zero-imm.d
+++ b/gas/testsuite/gas/riscv/c-zero-imm.d
@@ -9,14 +9,14 @@ Disassembly of section .text:
0+000 <.text>:
[ ]+0:[ ]+4501[ ]+li[ ]+a0,0
[ ]+2:[ ]+4581[ ]+li[ ]+a1,0
-[ ]+4:[ ]+8a01[ ]+andi[ ]+a2,a2,0
-[ ]+6:[ ]+8a81[ ]+andi[ ]+a3,a3,0
+[ ]+4:[ ]+8a01[ ]+and[ ]+a2,a2,0
+[ ]+6:[ ]+8a81[ ]+and[ ]+a3,a3,0
[ ]+8:[ ]+0001[ ]+nop
[ ]+a:[ ]+873a[ ]+mv[ ]+a4,a4
-[ ]+c:[ ]+0781[ ]+addi[ ]+a5,a5,0
-[ ]+e:[ ]+00051513[ ]+slli[ ]+a0,a0,0x0
-[ ]+12:[ ]+0005d593[ ]+srli[ ]+a1,a1,0x0
-[ ]+16:[ ]+40065613[ ]+srai[ ]+a2,a2,0x0
+[ ]+c:[ ]+0781[ ]+add[ ]+a5,a5,0
+[ ]+e:[ ]+00051513[ ]+sll[ ]+a0,a0,0x0
+[ ]+12:[ ]+0005d593[ ]+srl[ ]+a1,a1,0x0
+[ ]+16:[ ]+40065613[ ]+sra[ ]+a2,a2,0x0
[ ]+1a:[ ]+0682[ ]+c.slli64[ ]+a3
[ ]+1c:[ ]+8301[ ]+c.srli64[ ]+a4
[ ]+1e:[ ]+8781[ ]+c.srai64[ ]+a5
diff --git a/gas/testsuite/gas/riscv/c-zero-reg.d b/gas/testsuite/gas/riscv/c-zero-reg.d
index 02d5978..1982980 100644
--- a/gas/testsuite/gas/riscv/c-zero-reg.d
+++ b/gas/testsuite/gas/riscv/c-zero-reg.d
@@ -14,7 +14,7 @@ Disassembly of section .text:
[ ]+8:[ ]+9006[ ]+c.add[ ]+zero,ra
[ ]+a:[ ]+00500013[ ]+li[ ]+zero,5
[ ]+e:[ ]+00006037[ ]+lui[ ]+zero,0x6
-[ ]+12:[ ]+00701013[ ]+slli[ ]+zero,zero,0x7
+[ ]+12:[ ]+00701013[ ]+sll[ ]+zero,zero,0x7
[ ]+16:[ ]+00008013[ ]+mv[ ]+zero,ra
[ ]+1a:[ ]+00100033[ ]+add[ ]+zero,zero,ra
#...
diff --git a/gas/testsuite/gas/riscv/csr-insns-pseudo-zfinx.d b/gas/testsuite/gas/riscv/csr-insns-pseudo-zfinx.d
index 6e86398..9cdf410 100644
--- a/gas/testsuite/gas/riscv/csr-insns-pseudo-zfinx.d
+++ b/gas/testsuite/gas/riscv/csr-insns-pseudo-zfinx.d
@@ -12,9 +12,9 @@ Disassembly of section .text:
[ ]+[0-9a-f]+:[ ]+00029073[ ]+csrw[ ]+ustatus,t0
[ ]+[0-9a-f]+:[ ]+0002a073[ ]+csrs[ ]+ustatus,t0
[ ]+[0-9a-f]+:[ ]+0002b073[ ]+csrc[ ]+ustatus,t0
-[ ]+[0-9a-f]+:[ ]+000fd073[ ]+csrwi[ ]+ustatus,31
-[ ]+[0-9a-f]+:[ ]+000fe073[ ]+csrsi[ ]+ustatus,31
-[ ]+[0-9a-f]+:[ ]+000ff073[ ]+csrci[ ]+ustatus,31
+[ ]+[0-9a-f]+:[ ]+000fd073[ ]+csrw[ ]+ustatus,31
+[ ]+[0-9a-f]+:[ ]+000fe073[ ]+csrs[ ]+ustatus,31
+[ ]+[0-9a-f]+:[ ]+000ff073[ ]+csrc[ ]+ustatus,31
[ ]+[0-9a-f]+:[ ]+c00022f3[ ]+rdcycle[ ]+t0
[ ]+[0-9a-f]+:[ ]+c01022f3[ ]+rdtime[ ]+t0
[ ]+[0-9a-f]+:[ ]+c02022f3[ ]+rdinstret[ ]+t0
diff --git a/gas/testsuite/gas/riscv/csr-insns-pseudo.d b/gas/testsuite/gas/riscv/csr-insns-pseudo.d
index 3df7b4b..f44f0cb 100644
--- a/gas/testsuite/gas/riscv/csr-insns-pseudo.d
+++ b/gas/testsuite/gas/riscv/csr-insns-pseudo.d
@@ -12,9 +12,9 @@ Disassembly of section .text:
[ ]+[0-9a-f]+:[ ]+00029073[ ]+csrw[ ]+ustatus,t0
[ ]+[0-9a-f]+:[ ]+0002a073[ ]+csrs[ ]+ustatus,t0
[ ]+[0-9a-f]+:[ ]+0002b073[ ]+csrc[ ]+ustatus,t0
-[ ]+[0-9a-f]+:[ ]+000fd073[ ]+csrwi[ ]+ustatus,31
-[ ]+[0-9a-f]+:[ ]+000fe073[ ]+csrsi[ ]+ustatus,31
-[ ]+[0-9a-f]+:[ ]+000ff073[ ]+csrci[ ]+ustatus,31
+[ ]+[0-9a-f]+:[ ]+000fd073[ ]+csrw[ ]+ustatus,31
+[ ]+[0-9a-f]+:[ ]+000fe073[ ]+csrs[ ]+ustatus,31
+[ ]+[0-9a-f]+:[ ]+000ff073[ ]+csrc[ ]+ustatus,31
[ ]+[0-9a-f]+:[ ]+c00022f3[ ]+rdcycle[ ]+t0
[ ]+[0-9a-f]+:[ ]+c01022f3[ ]+rdtime[ ]+t0
[ ]+[0-9a-f]+:[ ]+c02022f3[ ]+rdinstret[ ]+t0
diff --git a/gas/testsuite/gas/riscv/ext-32.d b/gas/testsuite/gas/riscv/ext-32.d
index 918c9c8..97daa31 100644
--- a/gas/testsuite/gas/riscv/ext-32.d
+++ b/gas/testsuite/gas/riscv/ext-32.d
@@ -9,31 +9,31 @@ Disassembly of section .text:
0+000 <target>:
[ ]+0:[ ]+0ff57513[ ]+zext.b[ ]+a0,a0
-[ ]+4:[ ]+01051513[ ]+slli[ ]+a0,a0,0x10
-[ ]+8:[ ]+01055513[ ]+srli[ ]+a0,a0,0x10
-[ ]+c:[ ]+01851513[ ]+slli[ ]+a0,a0,0x18
-[ ]+10:[ ]+41855513[ ]+srai[ ]+a0,a0,0x18
-[ ]+14:[ ]+01051513[ ]+slli[ ]+a0,a0,0x10
-[ ]+18:[ ]+41055513[ ]+srai[ ]+a0,a0,0x10
+[ ]+4:[ ]+01051513[ ]+sll[ ]+a0,a0,0x10
+[ ]+8:[ ]+01055513[ ]+srl[ ]+a0,a0,0x10
+[ ]+c:[ ]+01851513[ ]+sll[ ]+a0,a0,0x18
+[ ]+10:[ ]+41855513[ ]+sra[ ]+a0,a0,0x18
+[ ]+14:[ ]+01051513[ ]+sll[ ]+a0,a0,0x10
+[ ]+18:[ ]+41055513[ ]+sra[ ]+a0,a0,0x10
[ ]+1c:[ ]+0ff67593[ ]+zext.b[ ]+a1,a2
-[ ]+20:[ ]+01061593[ ]+slli[ ]+a1,a2,0x10
-[ ]+24:[ ]+0105d593[ ]+srli[ ]+a1,a1,0x10
-[ ]+28:[ ]+01861593[ ]+slli[ ]+a1,a2,0x18
-[ ]+2c:[ ]+4185d593[ ]+srai[ ]+a1,a1,0x18
-[ ]+30:[ ]+01061593[ ]+slli[ ]+a1,a2,0x10
-[ ]+34:[ ]+4105d593[ ]+srai[ ]+a1,a1,0x10
+[ ]+20:[ ]+01061593[ ]+sll[ ]+a1,a2,0x10
+[ ]+24:[ ]+0105d593[ ]+srl[ ]+a1,a1,0x10
+[ ]+28:[ ]+01861593[ ]+sll[ ]+a1,a2,0x18
+[ ]+2c:[ ]+4185d593[ ]+sra[ ]+a1,a1,0x18
+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+5c:[ ]+85c1[ ]+sra[ ]+a1,a1,0x10
#...
diff --git a/gas/testsuite/gas/riscv/ext-64.d b/gas/testsuite/gas/riscv/ext-64.d
index 49d109b..1fe339c 100644
--- a/gas/testsuite/gas/riscv/ext-64.d
+++ b/gas/testsuite/gas/riscv/ext-64.d
@@ -9,43 +9,43 @@ Disassembly of section .text:
0+000 <target>:
[ ]+0:[ ]+0ff57513[ ]+zext.b[ ]+a0,a0
-[ ]+4:[ ]+03051513[ ]+slli[ ]+a0,a0,0x30
-[ ]+8:[ ]+03055513[ ]+srli[ ]+a0,a0,0x30
-[ ]+c:[ ]+03851513[ ]+slli[ ]+a0,a0,0x38
-[ ]+10:[ ]+43855513[ ]+srai[ ]+a0,a0,0x38
-[ ]+14:[ ]+03051513[ ]+slli[ ]+a0,a0,0x30
-[ ]+18:[ ]+43055513[ ]+srai[ ]+a0,a0,0x30
+[ ]+4:[ ]+03051513[ ]+sll[ ]+a0,a0,0x30
+[ ]+8:[ ]+03055513[ ]+srl[ ]+a0,a0,0x30
+[ ]+c:[ ]+03851513[ ]+sll[ ]+a0,a0,0x38
+[ ]+10:[ ]+43855513[ ]+sra[ ]+a0,a0,0x38
+[ ]+14:[ ]+03051513[ ]+sll[ ]+a0,a0,0x30
+[ ]+18:[ ]+43055513[ ]+sra[ ]+a0,a0,0x30
[ ]+1c:[ ]+0ff67593[ ]+zext.b[ ]+a1,a2
-[ ]+20:[ ]+03061593[ ]+slli[ ]+a1,a2,0x30
-[ ]+24:[ ]+0305d593[ ]+srli[ ]+a1,a1,0x30
-[ ]+28:[ ]+03861593[ ]+slli[ ]+a1,a2,0x38
-[ ]+2c:[ ]+4385d593[ ]+srai[ ]+a1,a1,0x38
-[ ]+30:[ ]+03061593[ ]+slli[ ]+a1,a2,0x30
-[ ]+34:[ ]+4305d593[ ]+srai[ ]+a1,a1,0x30
-[ ]+38:[ ]+02051513[ ]+slli[ ]+a0,a0,0x20
-[ ]+3c:[ ]+02055513[ ]+srli[ ]+a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,a0,0x30
[ ]+60:[ ]+0ff67593[ ]+zext.b[ ]+a1,a2
-[ ]+64:[ ]+03061593[ ]+slli[ ]+a1,a2,0x30
-[ ]+68:[ ]+91c1[ ]+srli[ ]+a1,a1,0x30
-[ ]+6a:[ ]+03861593[ ]+slli[ ]+a1,a2,0x38
-[ ]+6e:[ ]+95e1[ ]+srai[ ]+a1,a1,0x38
-[ ]+70:[ ]+03061593[ ]+slli[ ]+a1,a2,0x30
-[ ]+74:[ ]+95c1[ ]+srai[ ]+a1,a1,0x30
-[ ]+76:[ ]+1502[ ]+slli[ ]+a0,a0,0x20
-[ ]+78:[ ]+9101[ ]+srli[ ]+a0,a0,0x20
+[ ]+64:[ ]+03061593[ ]+sll[ ]+a1,a2,0x30
+[ ]+68:[ ]+91c1[ ]+srl[ ]+a1,a1,0x30
+[ ]+6a:[ ]+03861593[ ]+sll[ ]+a1,a2,0x38
+[ ]+6e:[ ]+95e1[ ]+sra[ ]+a1,a1,0x38
+[ ]+70:[ ]+03061593[ ]+sll[ ]+a1,a2,0x30
+[ ]+74:[ ]+95c1[ ]+sra[ ]+a1,a1,0x30
+[ ]+76:[ ]+1502[ ]+sll[ ]+a0,a0,0x20
+[ ]+78:[ ]+9101[ ]+srl[ ]+a0,a0,0x20
[ ]+7a:[ ]+2501[ ]+sext.w[ ]+a0,a0
-[ ]+7c:[ ]+02061593[ ]+slli[ ]+a1,a2,0x20
-[ ]+80:[ ]+9181[ ]+srli[ ]+a1,a1,0x20
+[ ]+7c:[ ]+02061593[ ]+sll[ ]+a1,a2,0x20
+[ ]+80:[ ]+9181[ ]+srl[ ]+a1,a1,0x20
[ ]+82:[ ]+0006059b[ ]+sext.w[ ]+a1,a2
#...
diff --git a/gas/testsuite/gas/riscv/insn-na.d b/gas/testsuite/gas/riscv/insn-na.d
new file mode 100644
index 0000000..b4a664b
--- /dev/null
+++ b/gas/testsuite/gas/riscv/insn-na.d
@@ -0,0 +1,69 @@
+#as: -march=rv32ifcv
+#source: insn.s
+#objdump: -dw -Mno-aliases
+
+.*:[ ]+file format .*
+
+
+Disassembly of section .text:
+
+0+000 <target>:
+[^:]+:[ ]+00c58533[ ]+add[ ]+a0,a1,a2
+[^:]+:[ ]+00d58513[ ]+addi[ ]+a0,a1,13
+[^:]+:[ ]+00a58567[ ]+jalr[ ]+a0,10\(a1\)
+[^:]+:[ ]+00458503[ ]+lb[ ]+a0,4\(a1\)
+[^:]+:[ ]+feb508e3[ ]+beq[ ]+a0,a1,0 \<target\>
+[^:]+:[ ]+feb506e3[ ]+beq[ ]+a0,a1,0 \<target\>
+[^:]+:[ ]+00a58223[ ]+sb[ ]+a0,4\(a1\)
+[^:]+:[ ]+00fff537[ ]+lui[ ]+a0,0xfff
+[^:]+:[ ]+fe1ff56f[ ]+jal[ ]+a0,0 \<target\>
+[^:]+:[ ]+fddff56f[ ]+jal[ ]+a0,0 \<target\>
+[^:]+:[ ]+852e[ ]+c\.mv[ ]+a0,a1
+[^:]+:[ ]+0511[ ]+c\.addi[ ]+a0,4 # .*
+[^:]+:[ ]+002c[ ]+c\.addi4spn[ ]+a1,sp,8
+[^:]+:[ ]+c0aa[ ]+c\.swsp[ ]+a0,64\(sp\)
+[^:]+:[ ]+41a8[ ]+c\.lw[ ]+a0,64\(a1\)
+[^:]+:[ ]+c1a8[ ]+c\.sw[ ]+a0,64\(a1\)
+[^:]+:[ ]+d5f1[ ]+c\.beqz[ ]+a1,0 \<target\>
+[^:]+:[ ]+b7e9[ ]+c\.j[ ]+0 \<target\>
+[^:]+:[ ]+00c58533[ ]+add[ ]+a0,a1,a2
+[^:]+:[ ]+00d58513[ ]+addi[ ]+a0,a1,13
+[^:]+:[ ]+00a58567[ ]+jalr[ ]+a0,10\(a1\)
+[^:]+:[ ]+00458503[ ]+lb[ ]+a0,4\(a1\)
+[^:]+:[ ]+fab50ce3[ ]+beq[ ]+a0,a1,0 \<target\>
+[^:]+:[ ]+fab50ae3[ ]+beq[ ]+a0,a1,0 \<target\>
+[^:]+:[ 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0,a1,a2
+[^:]+:[ ]+00c58533[ ]+add[ ]+a0,a1,a2
+[^:]+:[ ]+022180d7[ ]+vadd\.vv[ ]+v1,v2,v3
+[^:]+:[ ]+0001[ ]+c\.addi[ ]+zero,0
+[^:]+:[ ]+00000013[ ]+addi[ ]+zero,zero,0
+[^:]+:[ ]+001f 0000 0000[ ].*
+[^:]+:[ ]+0000003f 00000000[ ].*
+[^:]+:[ ]+0001[ ]+c\.addi[ ]+zero,0
+[^:]+:[ ]+00000013[ ]+addi[ ]+zero,zero,0
+[^:]+:[ ]+001f 0000 0000[ ].*
+[^:]+:[ ]+0000003f 00000000[ ].*
diff --git a/gas/testsuite/gas/riscv/insn.d b/gas/testsuite/gas/riscv/insn.d
index 9a946dd..14b15d8 100644
--- a/gas/testsuite/gas/riscv/insn.d
+++ b/gas/testsuite/gas/riscv/insn.d
@@ -8,7 +8,7 @@ Disassembly of section .text:
0+000 <target>:
[^:]+:[ ]+00c58533[ ]+add[ ]+a0,a1,a2
-[^:]+:[ ]+00d58513[ ]+addi[ ]+a0,a1,13
+[^:]+:[ ]+00d58513[ ]+add[ ]+a0,a1,13
[^:]+:[ ]+00a58567[ ]+jalr[ ]+a0,10\(a1\)
[^:]+:[ ]+00458503[ ]+lb[ ]+a0,4\(a1\)
[^:]+:[ ]+feb508e3[ ]+beq[ ]+a0,a1,0 \<target\>
@@ -22,8 +22,8 @@ Disassembly of section .text:
[^:]+:[ ]+fddff56f[ ]+jal[ ]+a0,0 \<target\>
[^:]+: R_RISCV_JAL[ ]+target
[^:]+:[ ]+852e[ ]+mv[ ]+a0,a1
-[^:]+:[ ]+0511[ ]+addi[ ]+a0,a0,4 # .*
-[^:]+:[ ]+002c[ ]+addi[ ]+a1,sp,8
+[^:]+:[ ]+0511[ ]+add[ ]+a0,a0,4 # .*
+[^:]+:[ ]+002c[ ]+add[ ]+a1,sp,8
[^:]+:[ ]+c0aa[ ]+sw[ ]+a0,64\(sp\)
[^:]+:[ ]+41a8[ ]+lw[ ]+a0,64\(a1\)
[^:]+:[ ]+c1a8[ ]+sw[ ]+a0,64\(a1\)
@@ -32,7 +32,7 @@ Disassembly of section .text:
[^:]+:[ ]+b7e9[ ]+j[ ]+0 \<target\>
[^:]+: R_RISCV_RVC_JUMP[ ]+target
[^:]+:[ ]+00c58533[ ]+add[ ]+a0,a1,a2
-[^:]+:[ ]+00d58513[ ]+addi[ ]+a0,a1,13
+[^:]+:[ ]+00d58513[ ]+add[ ]+a0,a1,13
[^:]+:[ ]+00a58567[ ]+jalr[ ]+a0,10\(a1\)
[^:]+:[ ]+00458503[ ]+lb[ ]+a0,4\(a1\)
[^:]+:[ ]+fab50ce3[ ]+beq[ ]+a0,a1,0 \<target\>
@@ -46,8 +46,8 @@ Disassembly of section .text:
[^:]+:[ ]+fa5ff56f[ ]+jal[ ]+a0,0 \<target\>
[^:]+: R_RISCV_JAL[ ]+target
[^:]+:[ ]+852e[ ]+mv[ ]+a0,a1
-[^:]+:[ ]+0511[ ]+addi[ ]+a0,a0,4 # .*
-[^:]+:[ ]+002c[ ]+addi[ ]+a1,sp,8
+[^:]+:[ ]+0511[ ]+add[ ]+a0,a0,4 # .*
+[^:]+:[ ]+002c[ ]+add[ ]+a1,sp,8
[^:]+:[ ]+c0aa[ ]+sw[ ]+a0,64\(sp\)
[^:]+:[ ]+41a8[ ]+lw[ ]+a0,64\(a1\)
[^:]+:[ ]+c1a8[ ]+sw[ ]+a0,64\(a1\)
diff --git a/gas/testsuite/gas/riscv/k-ext-64.d b/gas/testsuite/gas/riscv/k-ext-64.d
index 3237c95..d56e035 100644
--- a/gas/testsuite/gas/riscv/k-ext-64.d
+++ b/gas/testsuite/gas/riscv/k-ext-64.d
@@ -10,10 +10,10 @@ 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]+:[ ]+6025d513[ ]+ror[ ]+a0,a1,0x2
[ ]+[0-9a-f]+:[ ]+60c5d53b[ ]+rorw[ ]+a0,a1,a2
[ ]+[0-9a-f]+:[ ]+60c5953b[ ]+rolw[ ]+a0,a1,a2
-[ ]+[0-9a-f]+:[ ]+6025d51b[ ]+roriw[ ]+a0,a1,0x2
+[ ]+[0-9a-f]+:[ ]+6025d51b[ ]+rorw[ ]+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
diff --git a/gas/testsuite/gas/riscv/k-ext.d b/gas/testsuite/gas/riscv/k-ext.d
index 57a720b..b00a1c9 100644
--- a/gas/testsuite/gas/riscv/k-ext.d
+++ b/gas/testsuite/gas/riscv/k-ext.d
@@ -10,7 +10,7 @@ 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]+:[ ]+6025d513[ ]+ror[ ]+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
diff --git a/gas/testsuite/gas/riscv/li32.d b/gas/testsuite/gas/riscv/li32.d
index 3496384..ec33bf5 100644
--- a/gas/testsuite/gas/riscv/li32.d
+++ b/gas/testsuite/gas/riscv/li32.d
@@ -8,10 +8,10 @@ Disassembly of section .text:
0+000 <target>:
[^:]+:[ ]+6521[ ]+lui[ ]+a0,0x8
-[^:]+:[ ]+0505[ ]+addi[ ]+a0,a0,1 # .*
+[^:]+:[ ]+0505[ ]+add[ ]+a0,a0,1 # .*
[^:]+:[ ]+6509[ ]+lui[ ]+a0,0x2
-[^:]+:[ ]+f0150513[ ]+addi[ ]+a0,a0,-255 # .*
+[^:]+:[ ]+f0150513[ ]+add[ ]+a0,a0,-255 # .*
[^:]+:[ ]+12345537[ ]+lui[ ]+a0,0x12345
-[^:]+:[ ]+0505[ ]+addi[ ]+a0,a0,1 # .*
+[^:]+:[ ]+0505[ ]+add[ ]+a0,a0,1 # .*
[^:]+:[ ]+f2345537[ ]+lui[ ]+a0,0xf2345
-[^:]+:[ ]+0505[ ]+addi[ ]+a0,a0,1 # .*
+[^:]+:[ ]+0505[ ]+add[ ]+a0,a0,1 # .*
diff --git a/gas/testsuite/gas/riscv/li64.d b/gas/testsuite/gas/riscv/li64.d
index 0479857..28fa914 100644
--- a/gas/testsuite/gas/riscv/li64.d
+++ b/gas/testsuite/gas/riscv/li64.d
@@ -8,37 +8,37 @@ Disassembly of section .text:
0000000000000000 <target>:
[^:]+:[ ]+6521[ ]+lui[ ]+a0,0x8
-[^:]+:[ ]+2505[ ]+addiw[ ]+a0,a0,1 # .*
+[^:]+:[ ]+2505[ ]+addw[ ]+a0,a0,1 # .*
[^:]+:[ ]+6509[ ]+lui[ ]+a0,0x2
-[^:]+:[ ]+f015051b[ ]+addiw[ ]+a0,a0,-255 # .*
+[^:]+:[ ]+f015051b[ ]+addw[ ]+a0,a0,-255 # .*
[^:]+:[ ]+12345537[ ]+lui[ ]+a0,0x12345
-[^:]+:[ ]+2505[ ]+addiw[ ]+a0,a0,1 # .*
+[^:]+:[ ]+2505[ ]+addw[ ]+a0,a0,1 # .*
[^:]+:[ ]+000f2537[ ]+lui[ ]+a0,0xf2
-[^:]+:[ ]+3455051b[ ]+addiw[ ]+a0,a0,837 # .*
-[^:]+:[ ]+0532[ ]+sl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+a0,a0,0xd
+[^:]+:[ ]+f0150513[ ]+add[ ]+a0,a0,-255
+[^:]+:[ ]+0010051b[ ]+addw[ ]+a0,zero,1
+[^:]+:[ ]+151a[ ]+sll[ ]+a0,a0,0x26
+[^:]+:[ ]+1565[ ]+add[ ]+a0,a0,-7
+[^:]+:[ ]+0536[ ]+sll[ ]+a0,a0,0xd
+[^:]+:[ ]+34550513[ ]+add[ ]+a0,a0,837
+[^:]+:[ ]+0532[ ]+sll[ ]+a0,a0,0xc
+[^:]+:[ ]+0505[ ]+add[ ]+a0,a0,1
[^:]+:[ ]+01fc4537[ ]+lui[ ]+a0,0x1fc4
-[^:]+:[ ]+c915051b[ ]+addiw[ ]+a0,a0,-879 # .*
-[^:]+:[ ]+0536[ ]+slli[ ]+a0,a0,0xd
-[^:]+:[ ]+1565[ ]+addi[ ]+a0,a0,-7
-[^:]+:[ ]+0536[ ]+slli[ ]+a0,a0,0xd
-[^:]+:[ ]+34550513[ ]+addi[ ]+a0,a0,837
-[^:]+:[ ]+0532[ ]+slli[ ]+a0,a0,0xc
-[^:]+:[ ]+0505[ ]+addi[ ]+a0,a0,1
+[^:]+:[ ]+c915051b[ ]+addw[ ]+a0,a0,-879 # .*
+[^:]+:[ ]+0536[ ]+sll[ ]+a0,a0,0xd
+[^:]+:[ ]+1565[ ]+add[ ]+a0,a0,-7
+[^:]+:[ ]+0536[ ]+sll[ ]+a0,a0,0xd
+[^:]+:[ ]+34550513[ ]+add[ ]+a0,a0,837
+[^:]+:[ ]+0532[ ]+sll[ ]+a0,a0,0xc
+[^:]+:[ ]+0505[ ]+add[ ]+a0,a0,1
diff --git a/gas/testsuite/gas/riscv/lla32.d b/gas/testsuite/gas/riscv/lla32.d
index 8e9324c..7e5add1 100644
--- a/gas/testsuite/gas/riscv/lla32.d
+++ b/gas/testsuite/gas/riscv/lla32.d
@@ -10,10 +10,10 @@ Disassembly of section .text:
0: 00100513 li a0,1
4: 00001537 lui a0,0x1
8: 00001537 lui a0,0x1
- c: 00150513 addi a0,a0,1 # 1001 <c>
+ c: 00150513 add a0,a0,1 # 1001 <c>
10: 00001537 lui a0,0x1
- 14: fff50513 addi a0,a0,-1 # fff <d>
+ 14: fff50513 add a0,a0,-1 # fff <d>
18: 80000537 lui a0,0x80000
- 1c: fff50513 addi a0,a0,-1 # 7fffffff <e>
+ 1c: fff50513 add a0,a0,-1 # 7fffffff <e>
20: 00000513 li a0,0
24: fff00513 li a0,-1
diff --git a/gas/testsuite/gas/riscv/lla64.d b/gas/testsuite/gas/riscv/lla64.d
index b25ef67..3dac244 100644
--- a/gas/testsuite/gas/riscv/lla64.d
+++ b/gas/testsuite/gas/riscv/lla64.d
@@ -7,14 +7,14 @@
Disassembly of section .text:
0+000 <.text>:
- 0: 0010051b addiw a0,zero,1
+ 0: 0010051b addw a0,zero,1
4: 00001537 lui a0,0x1
8: 00001537 lui a0,0x1
- c: 0015051b addiw a0,a0,1 # .*
+ c: 0015051b addw a0,a0,1 # .*
10: 00001537 lui a0,0x1
- 14: fff5051b addiw a0,a0,-1 # .*
+ 14: fff5051b addw a0,a0,-1 # .*
18: 80000537 lui a0,0x80000
- 1c: fff5051b addiw a0,a0,-1 # .*
+ 1c: fff5051b addw a0,a0,-1 # .*
20: 0000051b sext.w a0,zero
- 24: fff0051b addiw a0,zero,-1
+ 24: fff0051b addw a0,zero,-1
28: 80000537 lui a0,0x80000
diff --git a/gas/testsuite/gas/riscv/zbkb-32.d b/gas/testsuite/gas/riscv/zbkb-32.d
index c2718a0..1ab233c 100644
--- a/gas/testsuite/gas/riscv/zbkb-32.d
+++ b/gas/testsuite/gas/riscv/zbkb-32.d
@@ -10,7 +10,7 @@ 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]+:[ ]+6025d513[ ]+ror[ ]+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
diff --git a/gas/testsuite/gas/riscv/zbkb-64.d b/gas/testsuite/gas/riscv/zbkb-64.d
index 9e9c706..e942bc6 100644
--- a/gas/testsuite/gas/riscv/zbkb-64.d
+++ b/gas/testsuite/gas/riscv/zbkb-64.d
@@ -10,10 +10,10 @@ 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]+:[ ]+6025d513[ ]+ror[ ]+a0,a1,0x2
[ ]+[0-9a-f]+:[ ]+60c5d53b[ ]+rorw[ ]+a0,a1,a2
[ ]+[0-9a-f]+:[ ]+60c5953b[ ]+rolw[ ]+a0,a1,a2
-[ ]+[0-9a-f]+:[ ]+6025d51b[ ]+roriw[ ]+a0,a1,0x2
+[ ]+[0-9a-f]+:[ ]+6025d51b[ ]+rorw[ ]+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