This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] New arm-wince-pe specific test.


Hi all,

Attached is a gas testsuite patch the adds the complementary
arm-wince-pe test to the fixes from:

gas/ChangeLog
2006-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>

* config/tc-arm.c (md_pcrel_from_section): Force a bias for relocs against external symbols for WinCE targets.
(md_apply_fix): Likewise.


Cheers,
Pedro Alves

---

2006-08-04 Pedro Alves <pedro_alves@portugalmail.pt>

gas/testsuite
    * gas/arm/wince.s: New test.
    * gas/arm/wince.d: New test.
--- /dev/null	2006-08-04 20:17:01.044396800 +0100
+++ gas/testsuite/gas/arm/wince.s	2006-07-25 00:50:50.000000000 +0100
@@ -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
--- /dev/null	2006-08-04 20:17:06.492230400 +0100
+++ gas/testsuite/gas/arm/wince.d	2006-08-04 20:16:34.000000000 +0100
@@ -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:
+00000000 <global_data> 00000007 	andeq	r0, r0, r7
+			0: ARM_32	global_data
+00000004 <global_sym> e1a00000 	nop			\(mov r0,r0\)
+00000008 <global_sym\+0x4> e1a00000 	nop			\(mov r0,r0\)
+0000000c <global_sym\+0x8> e1a00000 	nop			\(mov r0,r0\)
+00000010 <global_sym\+0xc> eafffffb 	b	fffffff8 <global_sym\+0xfffffff4>
+			10: ARM_26D	global_sym\+0xfffffffc
+00000018 <global_sym\+0x14> ebfffffa 	bl	fffffff4 <global_sym\+0xfffffff0>
+			14: ARM_26D	global_sym\+0xfffffffc
+0000001c <global_sym\+0x18> 0afffff9 	beq	fffffff0 <global_sym\+0xffffffec>
+			18: ARM_26D	global_sym\+0xfffffffc
+00000020 <global_sym\+0x1c> eafffff8 	b	00000008 <global_sym\+0x4>
+00000024 <global_sym\+0x20> ebfffff7 	bl	00000008 <global_sym\+0x4>
+00000028 <global_sym\+0x24> 0afffff6 	beq	00000008 <global_sym\+0x4>
+0000002c <global_sym\+0x28> eafffff5 	b	00000008 <global_sym\+0x4>
+00000030 <global_sym\+0x2c> ebfffff4 	bl	00000008 <global_sym\+0x4>
+00000034 <global_sym\+0x30> e51f0034 	ldr	r0, \[pc, #-52\]	; 00000008 <global_sym\+0x4>
+00000038 <global_sym\+0x34> e51f0038 	ldr	r0, \[pc, #-56\]	; 00000008 <global_sym\+0x4>
+0000003c <global_sym\+0x38> e51f003c 	ldr	r0, \[pc, #-60\]	; 00000008 <global_sym\+0x4>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]