aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2016-03-31 19:51:14 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2016-04-19 22:50:33 +0100
commitc8f785f220bab3c17fc93445ac509495d00d5afe (patch)
tree4b845f17e4171fcffd0fb568df639a56f397011f /gas
parentee2915c993e333c2a1c26499da1a918516d2f1cc (diff)
downloadgdb-c8f785f220bab3c17fc93445ac509495d00d5afe.zip
gdb-c8f785f220bab3c17fc93445ac509495d00d5afe.tar.gz
gdb-c8f785f220bab3c17fc93445ac509495d00d5afe.tar.bz2
opcodes/arc: Add more nps instructions
Add dctcp, dcip, dcet, and dcacl instructions. gas/ChangeLog: * testsuite/gas/arc/nps400-4.d: New file. * testsuite/gas/arc/nps400-4.s: New file. * testsuite/gas/arc/nps400-5.d: New file. * testsuite/gas/arc/nps400-5.s: New file. include/ChangeLog: * opcode/arc.h (insn_class_t): Add NET and ACL class. opcodes/ChangeLog: * arc-nps400-tbl.h: Add dctcp, dcip, dcet, and dcacl instructions.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/testsuite/gas/arc/nps400-4.d12
-rw-r--r--gas/testsuite/gas/arc/nps400-4.s11
-rw-r--r--gas/testsuite/gas/arc/nps400-5.d10
-rw-r--r--gas/testsuite/gas/arc/nps400-5.s5
5 files changed, 45 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index cfd6326..d32792a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+2016-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * testsuite/gas/arc/nps400-4.d: New file.
+ * testsuite/gas/arc/nps400-4.s: New file.
+ * testsuite/gas/arc/nps400-5.d: New file.
+ * testsuite/gas/arc/nps400-5.s: New file.
+
2016-04-19 Martin Galvan <martin.galvan@tallertechnologies.com>
* doc/as.texinfo (.cfi_remember_state, .cfi_restore_state): Improve
diff --git a/gas/testsuite/gas/arc/nps400-4.d b/gas/testsuite/gas/arc/nps400-4.d
new file mode 100644
index 0000000..2caab8c
--- /dev/null
+++ b/gas/testsuite/gas/arc/nps400-4.d
@@ -0,0 +1,12 @@
+#as: -mcpu=nps400
+#objdump: -dr
+
+.*: +file format .*arc.*
+
+Disassembly of section .text:
+
+[0-9a-f]+ <.*>:
+ 0: 3a2f 1300 dctcp r10,r12
+ 4: 3e29 13cd dcip r13,r14,r15
+ 8: 382f 2442 dcet r16,r17
+ c: 3b20 2512 dcet r18,r19,r20
diff --git a/gas/testsuite/gas/arc/nps400-4.s b/gas/testsuite/gas/arc/nps400-4.s
new file mode 100644
index 0000000..d2d7814
--- /dev/null
+++ b/gas/testsuite/gas/arc/nps400-4.s
@@ -0,0 +1,11 @@
+ .text
+
+ /* dctcp */
+ dctcp r10, r12
+
+ /* dcip */
+ dcip r13, r14, r15
+
+ /* dcet */
+ dcet r16, r17
+ dcet r18, r19, r20
diff --git a/gas/testsuite/gas/arc/nps400-5.d b/gas/testsuite/gas/arc/nps400-5.d
new file mode 100644
index 0000000..214e38e
--- /dev/null
+++ b/gas/testsuite/gas/arc/nps400-5.d
@@ -0,0 +1,10 @@
+#as: -mcpu=nps400
+#objdump: -dr
+
+.*: +file format .*arc.*
+
+Disassembly of section .text:
+
+[0-9a-f]+ <.*>:
+ 0: 3925 0080 dcacl r0,r1,r2
+ 4: 3c25 8143 dcacl.f r3,r4,r5
diff --git a/gas/testsuite/gas/arc/nps400-5.s b/gas/testsuite/gas/arc/nps400-5.s
new file mode 100644
index 0000000..38a34c2
--- /dev/null
+++ b/gas/testsuite/gas/arc/nps400-5.s
@@ -0,0 +1,5 @@
+ .text
+
+ /* dcacl */
+ dcacl r0, r1, r2
+ dcacl.f r3, r4, r5