summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/ld/testsuite/ld-arm/cortex-a8-fix-bl-rel.s
blob: 2d21bbfb432dfc198655d0acd941d88340c0ac02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
	.syntax unified
	.cpu cortex-a8
	.thumb
	.text

	@ expansion 32 bytes
        .macro bw1
1:
        add.w r0, r1, r2
        bl.w targetfn
        add.w r0, r1, r2
        bl.w targetfn
        add.w r0, r1, r2
        bl.w targetfn
        add.w r0, r1, r2
        bl.w targetfn
        .endm

        @ expansion 128 bytes
        .macro bw2
        bw1
        bw1
        bw1
        bw1
        .endm

        .align  3
        .global _start
        .thumb
        .thumb_func
        .type   _start, %function
_start:
	nop

	@ If calling an ARM destination, we *don't* want to create a
	@ Cortex-A8 stub: the Thumb-to-ARM stub will suffice.
	bw2
	bw2

        bx      lr