diff options
author | Nick Clifton <nickc@redhat.com> | 2006-08-06 15:11:08 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-08-06 15:11:08 +0000 |
commit | e486c55d69e2b0883818167a38333c2d7baa24c6 (patch) | |
tree | 1fe9485ea369061ab321545358fa279bc7276da4 /gas | |
parent | f0927246c4fb95097b42d1e8ce6a79ba51f67e5a (diff) | |
download | gdb-e486c55d69e2b0883818167a38333c2d7baa24c6.zip gdb-e486c55d69e2b0883818167a38333c2d7baa24c6.tar.gz gdb-e486c55d69e2b0883818167a38333c2d7baa24c6.tar.bz2 |
* gas/arm/wince.s: New test.
* gas/arm/wince.d: New test.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/wince.d | 30 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/wince.s | 25 |
3 files changed, 60 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index f222a5a..260e6b8 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-08-04 Pedro Alves <pedro_alves@portugalmail.pt> + + * gas/arm/wince.s: New test. + * gas/arm/wince.d: New test. + 2006-08-03 Joseph Myers <joseph@codesourcery.com> * gas/arm/iwmmxt-bad.s: Test invalid register names for wldrw and diff --git a/gas/testsuite/gas/arm/wince.d b/gas/testsuite/gas/arm/wince.d new file mode 100644 index 0000000..1770cac --- /dev/null +++ b/gas/testsuite/gas/arm/wince.d @@ -0,0 +1,30 @@ +#objdump: -dr --prefix-addresses --show-raw-insn +#name: ARM WinCE basic tests +#as: -mcpu=arm7m -EL +#source: wince.s +#not-skip: *-wince-* + +# Some WinCE specific tests. + +.*: +file format .*arm.* + +Disassembly of section .text: +0+000 <global_data> 00000007 andeq r0, r0, r7 + 0: ARM_32 global_data +0+004 <global_sym> e1a00000 nop \(mov r0,r0\) +0+008 <global_sym\+0x4> e1a00000 nop \(mov r0,r0\) +0+000c <global_sym\+0x8> e1a00000 nop \(mov r0,r0\) +0+010 <global_sym\+0xc> eafffffb b f+ff8 <global_sym\+0xf+ff4> + 10: ARM_26D global_sym\+0xf+ffc +0+018 <global_sym\+0x14> ebfffffa bl f+ff4 <global_sym\+0xf+ff0> + 14: ARM_26D global_sym\+0xf+ffc +0+01c <global_sym\+0x18> 0afffff9 beq f+ff0 <global_sym\+0xf+fec> + 18: ARM_26D global_sym\+0xf+ffc +0+020 <global_sym\+0x1c> eafffff8 b 0+008 <global_sym\+0x4> +0+024 <global_sym\+0x20> ebfffff7 bl 0+008 <global_sym\+0x4> +0+028 <global_sym\+0x24> 0afffff6 beq 0+008 <global_sym\+0x4> +0+02c <global_sym\+0x28> eafffff5 b 0+008 <global_sym\+0x4> +0+030 <global_sym\+0x2c> ebfffff4 bl 0+008 <global_sym\+0x4> +0+034 <global_sym\+0x30> e51f0034 ldr r0, \[pc, #-52\] ; 0+008 <global_sym\+0x4> +0+038 <global_sym\+0x34> e51f0038 ldr r0, \[pc, #-56\] ; 0+008 <global_sym\+0x4> +0+03c <global_sym\+0x38> e51f003c ldr r0, \[pc, #-60\] ; 0+008 <global_sym\+0x4> diff --git a/gas/testsuite/gas/arm/wince.s b/gas/testsuite/gas/arm/wince.s new file mode 100644 index 0000000..e8b76a0 --- /dev/null +++ b/gas/testsuite/gas/arm/wince.s @@ -0,0 +1,25 @@ + .global global_data + .text + .global global_sym + .def global_sym; .scl 2; .type 32; .endef + +global_data: + .word global_data+7 + +global_sym: +def_sym: +undef_sym: + nop + nop + nop + b global_sym + bl global_sym + beq global_sym + b def_sym + bl def_sym + beq def_sym + b undef_sym + bl undef_sym + ldr r0, global_sym + ldr r0, def_sym + ldr r0, undef_sym |