aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorMichael Eager <eager@eagercon.com>2012-11-21 17:54:11 +0000
committerMichael Eager <eager@eagercon.com>2012-11-21 17:54:11 +0000
commitabe9f67d45d38ee87b501da03a9b9778d31095fb (patch)
tree1c8994d0dcc2f7b674791ab5d41bccd707a4cd25 /gas/testsuite
parent0db4b3260cfc1818dba17ee53bb8e6ca6fdefecc (diff)
downloadgdb-abe9f67d45d38ee87b501da03a9b9778d31095fb.zip
gdb-abe9f67d45d38ee87b501da03a9b9778d31095fb.tar.gz
gdb-abe9f67d45d38ee87b501da03a9b9778d31095fb.tar.bz2
Add swap byte (swapb) and swap halfword (swaph) opcodes.
binutils/opcodes * microblaze-opc.h (op_code_struct): Add swapb, swaph Increase MAX_OPCODES. * microblaze-opcm.h (microblaze_instr): Likewise binutils/gas/testsuite * gas/microblaze/allinsn.s: Add swapb, swaph * gas/microblaze/allinsn.d: Likewise
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/microblaze/allinsn.d6
-rw-r--r--gas/testsuite/gas/microblaze/allinsn.s8
3 files changed, 19 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index f460b47..2661ff4 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2012-11-21 David Holsgrove <david.holsgrove@xilinx.com>
+ * gas/microblaze/allinsn.s: Add swapb, swaph
+ * gas/microblaze/allinsn.d: Likewise
+
+2012-11-21 David Holsgrove <david.holsgrove@xilinx.com>
+
* gas/microblaze/allinsn.s: Test use of SHR, SLR
* gas/microblaze/allinsn.d: Likewise
diff --git a/gas/testsuite/gas/microblaze/allinsn.d b/gas/testsuite/gas/microblaze/allinsn.d
index 4a03340..b454fdb 100644
--- a/gas/testsuite/gas/microblaze/allinsn.d
+++ b/gas/testsuite/gas/microblaze/allinsn.d
@@ -41,3 +41,9 @@ Disassembly of section .text:
30: b0000000 imm 0
34: 31600000 addik r11, r0, 0
38: 940bc802 mts rshr, r11
+
+0000003c <swapb>:
+ 3c: 900001e0 swapb r0, r0
+
+00000040 <swaph>:
+ 40: 900001e2 swaph r0, r0
diff --git a/gas/testsuite/gas/microblaze/allinsn.s b/gas/testsuite/gas/microblaze/allinsn.s
index 437444f..ffe91ca 100644
--- a/gas/testsuite/gas/microblaze/allinsn.s
+++ b/gas/testsuite/gas/microblaze/allinsn.s
@@ -46,4 +46,12 @@ regslr:
regshr:
la r11,r0,r0
mts rshr,r11
+ .text
+ .global swapb
+swapb:
+ swapb r0,r0
+ .text
+ .global swaph
+swaph:
+ swaph r0,r0