From e486c55d69e2b0883818167a38333c2d7baa24c6 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Sun, 6 Aug 2006 15:11:08 +0000 Subject: [PATCH] * gas/arm/wince.s: New test. * gas/arm/wince.d: New test. --- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/arm/wince.d | 30 ++++++++++++++++++++++++++++++ gas/testsuite/gas/arm/wince.s | 25 +++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 gas/testsuite/gas/arm/wince.d create mode 100644 gas/testsuite/gas/arm/wince.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index f222a5a3bd..260e6b8555 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-08-04 Pedro Alves + + * gas/arm/wince.s: New test. + * gas/arm/wince.d: New test. + 2006-08-03 Joseph Myers * 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 0000000000..1770cacd4f --- /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 00000007 andeq r0, r0, r7 + 0: ARM_32 global_data +0+004 e1a00000 nop \(mov r0,r0\) +0+008 e1a00000 nop \(mov r0,r0\) +0+000c e1a00000 nop \(mov r0,r0\) +0+010 eafffffb b f+ff8 + 10: ARM_26D global_sym\+0xf+ffc +0+018 ebfffffa bl f+ff4 + 14: ARM_26D global_sym\+0xf+ffc +0+01c 0afffff9 beq f+ff0 + 18: ARM_26D global_sym\+0xf+ffc +0+020 eafffff8 b 0+008 +0+024 ebfffff7 bl 0+008 +0+028 0afffff6 beq 0+008 +0+02c eafffff5 b 0+008 +0+030 ebfffff4 bl 0+008 +0+034 e51f0034 ldr r0, \[pc, #-52\] ; 0+008 +0+038 e51f0038 ldr r0, \[pc, #-56\] ; 0+008 +0+03c e51f003c ldr r0, \[pc, #-60\] ; 0+008 diff --git a/gas/testsuite/gas/arm/wince.s b/gas/testsuite/gas/arm/wince.s new file mode 100644 index 0000000000..e8b76a0459 --- /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