aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorMichael Eager <eager@eagercon.com>2012-11-14 16:19:30 +0000
committerMichael Eager <eager@eagercon.com>2012-11-14 16:19:30 +0000
commite692c2171ead6cdd096e625d6e8a4dd33d8bffe2 (patch)
tree0647cee09b70142e87eec56bf9ac0a86ccc86671 /gas
parentaff68abbd7cfed062055bd2d97f464b304b920bc (diff)
downloadgdb-e692c2171ead6cdd096e625d6e8a4dd33d8bffe2.zip
gdb-e692c2171ead6cdd096e625d6e8a4dd33d8bffe2.tar.gz
gdb-e692c2171ead6cdd096e625d6e8a4dd33d8bffe2.tar.bz2
Add the endian reversing versions of load/store instructions;
2012-11-14 Edgar E. Iglesias <edgar.iglesias@gmail.com> * microblaze-opc.h: Increase MAX_OPCODES (op_code_struct): add lbur, lhur, lwr, sbr, shr, swr * microblaze-opcm.h (microblaze_instr): add lbur, lhur, lwr, sbr, shr, swr 2012-11-14 David Holsgrove <david.holsgrove@xilinx.com> * gas/microblaze/allinsn.exp: New file - test newly added opcodes * gas/microblaze/allinsn.s: Likewise * gas/microblaze/allinsn.d: Likewise
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/microblaze/allinsn.d24
-rw-r--r--gas/testsuite/gas/microblaze/allinsn.exp5
-rw-r--r--gas/testsuite/gas/microblaze/allinsn.s27
4 files changed, 62 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index a7b4f42..9387158 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2012-11-14 David Holsgrove <david.holsgrove@xilinx.com>
+
+ * gas/microblaze/allinsn.exp: New file - test newly added opcodes
+ * gas/microblaze/allinsn.s: Likewise
+ * gas/microblaze/allinsn.d: Likewise
+
2012-11-14 Ulrich Weigand <uweigand@de.ibm.com>
* gas/ppc/astest.d: Update for fixup changes.
diff --git a/gas/testsuite/gas/microblaze/allinsn.d b/gas/testsuite/gas/microblaze/allinsn.d
new file mode 100644
index 0000000..79064ba
--- /dev/null
+++ b/gas/testsuite/gas/microblaze/allinsn.d
@@ -0,0 +1,24 @@
+#as:
+#objdump: -d
+
+.*: +file format .*
+
+Disassembly of section .text:
+
+00000000 <lbur>:
+ 0: c0000200 lbur r0, r0, r0
+
+00000004 <lhur>:
+ 4: c4000200 lhur r0, r0, r0
+
+00000008 <lwr>:
+ 8: c8000200 lwr r0, r0, r0
+
+0000000c <sbr>:
+ c: d0000200 sbr r0, r0, r0
+
+00000010 <shr>:
+ 10: d4000200 shr r0, r0, r0
+
+00000014 <swr>:
+ 14: d8000200 swr r0, r0, r0
diff --git a/gas/testsuite/gas/microblaze/allinsn.exp b/gas/testsuite/gas/microblaze/allinsn.exp
new file mode 100644
index 0000000..d1b1dea
--- /dev/null
+++ b/gas/testsuite/gas/microblaze/allinsn.exp
@@ -0,0 +1,5 @@
+# MicroBlaze test for special register.
+
+if [istarget microblaze*-*-*] {
+ run_dump_test "allinsn"
+}
diff --git a/gas/testsuite/gas/microblaze/allinsn.s b/gas/testsuite/gas/microblaze/allinsn.s
new file mode 100644
index 0000000..8bb3ef5
--- /dev/null
+++ b/gas/testsuite/gas/microblaze/allinsn.s
@@ -0,0 +1,27 @@
+ .text
+footext:
+ .text
+ .global lbur
+lbur:
+ lbur r0,r0,r0
+ .text
+ .global lhur
+lhur:
+ lhur r0,r0,r0
+ .text
+ .global lwr
+lwr:
+ lwr r0,r0,r0
+ .text
+ .global sbr
+sbr:
+ sbr r0,r0,r0
+ .text
+ .global shr
+shr:
+ shr r0,r0,r0
+ .text
+ .global swr
+swr:
+ swr r0,r0,r0
+