]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/branch-islands/space.s
ld64-409.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / branch-islands / space.s
CommitLineData
77cc3118 1
fb24a050 2#if __ppc__
77cc3118
A
3
4 .text
5
6_prejunk:
7 mr r3,r5
8 mr r3,r4
9 blr
10
11
12_space1:
13 .space 15*1024*1024 + 2
14
15 .align 5
16_junk:
17 mr r3,r5
18 mr r3,r4
19 blr
20
21
22_space2:
23 .space 2*1024*1024
24
25#endif
26
27
28#if __arm__
29
fb24a050
A
30 .text
31_prejunk:
32 mov r0, #1
33 nop
34
35#if __thumb2__
36 // thumb2 branches are +/- 16MB
37_space1:
9543cb2f 38 .space 13*1024*1024
fb24a050 39_space2:
9543cb2f 40 .space 13*1024*1024
fb24a050 41_space3:
9543cb2f 42 .space 13*1024*1024
fb24a050 43
77cc3118 44
fb24a050
A
45#elif __thumb__
46 // thumb1 branches are +/- 4MB
77cc3118 47_space1:
fb24a050
A
48 .space 3*1024*1024
49_space2:
50 .space 3*1024*1024
51_space3:
52 .space 3*1024*1024
53
54#else
77cc3118 55
fb24a050
A
56 // ARM branches are +/- 32MB
57_space1:
58 .space 14*1024*1024
59_space2:
60 .space 14*1024*1024
61_space3:
62 .space 14*1024*1024
77cc3118
A
63
64#endif
65
fb24a050
A
66 .align 5
67_junk:
68 mov r0, #1
69 nop
70
71
72_space4:
73 .space 2*1024*1024
74#endif
77cc3118 75
e667b16e
A
76
77#if __arm64__
78
79 .text
80 .align 4
81_prejunk:
82 nop
83 nop
84
85 // arm64 branches are +/- 128MB
86_space1:
87 .space 120*1024*1024
88_space2:
89 .space 120*1024*1024
90_space3:
91 .space 120*1024*1024
92
93
94#endif
95
96
77cc3118 97 .subsections_via_symbols