diff options
author | Nick Clifton <nickc@redhat.com> | 2012-04-12 07:47:36 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-04-12 07:47:36 +0000 |
commit | 465cb9fba7be3d6b6e85d07f1c7a5973c61b51ff (patch) | |
tree | c97ffe0b459722a6d507d1abfaf3428712738579 | |
parent | 6530b175a1051db81806d031b8ab2937744ff57b (diff) | |
download | gdb-465cb9fba7be3d6b6e85d07f1c7a5973c61b51ff.zip gdb-465cb9fba7be3d6b6e85d07f1c7a5973c61b51ff.tar.gz gdb-465cb9fba7be3d6b6e85d07f1c7a5973c61b51ff.tar.bz2 |
oops - omitted from previous delta
-rw-r--r-- | gas/testsuite/gas/arm/push-pop.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/push-pop.s | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/stm-ldm.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/stm-ldm.s | 8 |
4 files changed, 44 insertions, 0 deletions
diff --git a/gas/testsuite/gas/arm/push-pop.d b/gas/testsuite/gas/arm/push-pop.d new file mode 100644 index 0000000..6eabbfa --- /dev/null +++ b/gas/testsuite/gas/arm/push-pop.d @@ -0,0 +1,14 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: PUSH and POP + +# Test the `PUSH' and `POP' instructions + +.*: +file format .*arm.* + +Disassembly of section .text: +0+000 <.*> e52d0004 push {r0} ; \(str r0, \[sp, #-4\]!\) +0+004 <.*> e92d000e push {r1, r2, r3} +0+008 <.*> e52d9004 push {r9} ; \(str r9, \[sp, #-4\]!\) +0+00c <.*> e49d9004 pop {r9} ; \(ldr r9, \[sp\], #4\) +0+010 <.*> e8bd000e pop {r1, r2, r3} +0+014 <.*> e49d0004 pop {r0} ; \(ldr r0, \[sp\], #4\) diff --git a/gas/testsuite/gas/arm/push-pop.s b/gas/testsuite/gas/arm/push-pop.s new file mode 100644 index 0000000..d86ec9e --- /dev/null +++ b/gas/testsuite/gas/arm/push-pop.s @@ -0,0 +1,8 @@ + .text + .syntax unified + push {r0} + push {r1, r2, r3} + push {r9} + pop {r9} + pop {r1, r2, r3} + pop {r0} diff --git a/gas/testsuite/gas/arm/stm-ldm.d b/gas/testsuite/gas/arm/stm-ldm.d new file mode 100644 index 0000000..564b8bc --- /dev/null +++ b/gas/testsuite/gas/arm/stm-ldm.d @@ -0,0 +1,14 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: STM and LDM + +# Test the `STM*' and `LDM*' instructions + +.*: +file format .*arm.* + +Disassembly of section .text: +0+000 <.*> e92d0001 push {r0} +0+004 <.*> e92d000e push {r1, r2, r3} +0+008 <.*> e92d0200 push {r9} +0+00c <.*> e8bd0200 pop {r9} +0+010 <.*> e8bd000e pop {r1, r2, r3} +0+014 <.*> e8bd0001 pop {r0} diff --git a/gas/testsuite/gas/arm/stm-ldm.s b/gas/testsuite/gas/arm/stm-ldm.s new file mode 100644 index 0000000..77bbfbb --- /dev/null +++ b/gas/testsuite/gas/arm/stm-ldm.s @@ -0,0 +1,8 @@ + .text + .syntax unified + stmfd sp!, {r0} + stmfd sp!, {r1, r2, r3} + stmfd sp!, {r9} + ldmia sp!, {r9} + ldmia sp!, {r1, r2, r3} + ldmia sp!, {r0} |