* elf32-spu.c (build_stub): Fix malloc under-allocation.
[binutils.git] / ld / testsuite / ld-arm / cortex-a8-fix-blx.s
blob5d740248e997d43671956cf954a0ed6629eec24e
1 .syntax unified
2 .cpu cortex-a8
3 .text
5 @ expansion 32 bytes
6 .macro bw1
7 add.w r0, r1, r2
8 blx.w armfn
9 add.w r0, r1, r2
10 blx.w armfn
11 add.w r0, r1, r2
12 blx.w armfn
13 add.w r0, r1, r2
14 blx.w armfn
15 .endm
17 @ expansion 128 bytes
18 .macro bw2
19 bw1
20 bw1
21 bw1
22 bw1
23 .endm
25 .arm
26 .align 2
27 armfn:
28 mov r2, r3, asl r4
29 bx lr
31 .global _start
33 .thumb
34 .thumb_func
35 .align 3
36 .type _start, %function
37 _start:
38 nop
40 @ Trigger Cortex-A8 erratum workaround with blx instructions.
41 bw2
42 bw2
44 bx lr