242.2
[darwin-xtools.git] / ld64 / unit-tests / test-cases / branch-islands / space.s
blob18ceb96584022b941ef4cbd898d51ce7de844238
2 #if __ppc__
4 .text
6 _prejunk:
7 mr r3,r5
8 mr r3,r4
9 blr
12 _space1:
13 .space 15*1024*1024 + 2
15 .align 5
16 _junk:
17 mr r3,r5
18 mr r3,r4
19 blr
22 _space2:
23 .space 2*1024*1024
25 #endif
28 #if __arm__
30 .text
31 _prejunk:
32 mov r0, #1
33 nop
35 #if __thumb2__
36 // thumb2 branches are +/- 16MB
37 _space1:
38 .space 13*1024*1024
39 _space2:
40 .space 13*1024*1024
41 _space3:
42 .space 13*1024*1024
45 #elif __thumb__
46 // thumb1 branches are +/- 4MB
47 _space1:
48 .space 3*1024*1024
49 _space2:
50 .space 3*1024*1024
51 _space3:
52 .space 3*1024*1024
54 #else
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
64 #endif
66 .align 5
67 _junk:
68 mov r0, #1
69 nop
72 _space4:
73 .space 2*1024*1024
74 #endif
77 #if __arm64__
79 .text
80 .align 4
81 _prejunk:
82 nop
83 nop
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
94 #endif
97 .subsections_via_symbols