diff options
author | Michael Eager <eager@eagercon.com> | 2012-11-14 16:19:30 +0000 |
---|---|---|
committer | Michael Eager <eager@eagercon.com> | 2012-11-14 16:19:30 +0000 |
commit | e692c2171ead6cdd096e625d6e8a4dd33d8bffe2 (patch) | |
tree | 0647cee09b70142e87eec56bf9ac0a86ccc86671 /gas | |
parent | aff68abbd7cfed062055bd2d97f464b304b920bc (diff) | |
download | ppe42-binutils-e692c2171ead6cdd096e625d6e8a4dd33d8bffe2.tar.gz ppe42-binutils-e692c2171ead6cdd096e625d6e8a4dd33d8bffe2.zip |
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/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/microblaze/allinsn.d | 24 | ||||
-rw-r--r-- | gas/testsuite/gas/microblaze/allinsn.exp | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/microblaze/allinsn.s | 27 |
4 files changed, 62 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index a7b4f42e5e..9387158d43 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 0000000000..79064ba11e --- /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 0000000000..d1b1deac8b --- /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 0000000000..8bb3ef5857 --- /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 + |