Lines Matching refs:PIC
8 …cation-model=pic -code-model=small | FileCheck %s --check-prefix=CHECK --check-prefix=SMALL-PIC
9 …ation-model=pic -code-model=medium | FileCheck %s --check-prefix=CHECK --check-prefix=MEDIUM-PIC
10 …cation-model=pic -code-model=large | FileCheck %s --check-prefix=CHECK --check-prefix=LARGE-PIC
59 ; SMALL-PIC-LABEL: lea_static_data:
60 ; SMALL-PIC: # %bb.0:
61 ; SMALL-PIC-NEXT: leaq {{.*}}(%rip), %rax
62 ; SMALL-PIC-NEXT: retq
64 ; MEDIUM-PIC-LABEL: lea_static_data:
65 ; MEDIUM-PIC: # %bb.0:
66 ; MEDIUM-PIC-NEXT: leaq {{.*}}(%rip), %rcx
67 ; MEDIUM-PIC-NEXT: movabsq $static_data@GOTOFF, %rax
68 ; MEDIUM-PIC-NEXT: addq %rcx, %rax
69 ; MEDIUM-PIC-NEXT: retq
71 ; LARGE-PIC-LABEL: lea_static_data:
72 ; LARGE-PIC: # %bb.0:
73 ; LARGE-PIC-NEXT: .L0$pb:
74 ; LARGE-PIC-NEXT: leaq .L0${{.*}}(%rip), %rax
75 ; LARGE-PIC-NEXT: movabsq $_GLOBAL_OFFSET_TABLE_-.L0$pb, %rcx
76 ; LARGE-PIC-NEXT: addq %rax, %rcx
77 ; LARGE-PIC-NEXT: movabsq $static_data@GOTOFF, %rax
78 ; LARGE-PIC-NEXT: addq %rcx, %rax
79 ; LARGE-PIC-NEXT: retq
99 ; SMALL-PIC-LABEL: lea_global_data:
100 ; SMALL-PIC: # %bb.0:
101 ; SMALL-PIC-NEXT: leaq {{.*}}(%rip), %rax
102 ; SMALL-PIC-NEXT: retq
104 ; MEDIUM-PIC-LABEL: lea_global_data:
105 ; MEDIUM-PIC: # %bb.0:
106 ; MEDIUM-PIC-NEXT: leaq {{.*}}(%rip), %rcx
107 ; MEDIUM-PIC-NEXT: movabsq $global_data@GOTOFF, %rax
108 ; MEDIUM-PIC-NEXT: addq %rcx, %rax
109 ; MEDIUM-PIC-NEXT: retq
111 ; LARGE-PIC-LABEL: lea_global_data:
112 ; LARGE-PIC: # %bb.0:
113 ; LARGE-PIC-NEXT: .L1$pb:
114 ; LARGE-PIC-NEXT: leaq .L1${{.*}}(%rip), %rax
115 ; LARGE-PIC-NEXT: movabsq $_GLOBAL_OFFSET_TABLE_-.L1$pb, %rcx
116 ; LARGE-PIC-NEXT: addq %rax, %rcx
117 ; LARGE-PIC-NEXT: movabsq $global_data@GOTOFF, %rax
118 ; LARGE-PIC-NEXT: addq %rcx, %rax
119 ; LARGE-PIC-NEXT: retq
139 ; SMALL-PIC-LABEL: lea_extern_data:
140 ; SMALL-PIC: # %bb.0:
141 ; SMALL-PIC-NEXT: movq extern_data@{{.*}}(%rip), %rax
142 ; SMALL-PIC-NEXT: retq
144 ; MEDIUM-PIC-LABEL: lea_extern_data:
145 ; MEDIUM-PIC: # %bb.0:
146 ; MEDIUM-PIC-NEXT: movq extern_data@{{.*}}(%rip), %rax
147 ; MEDIUM-PIC-NEXT: retq
149 ; LARGE-PIC-LABEL: lea_extern_data:
150 ; LARGE-PIC: # %bb.0:
151 ; LARGE-PIC-NEXT: .L2$pb:
152 ; LARGE-PIC-NEXT: leaq .L2${{.*}}(%rip), %rax
153 ; LARGE-PIC-NEXT: movabsq $_GLOBAL_OFFSET_TABLE_-.L2$pb, %rcx
154 ; LARGE-PIC-NEXT: addq %rax, %rcx
155 ; LARGE-PIC-NEXT: movabsq $extern_data@GOT, %rax
156 ; LARGE-PIC-NEXT: movq (%rcx,%rax), %rax
157 ; LARGE-PIC-NEXT: retq
179 ; SMALL-PIC-LABEL: load_global_data:
180 ; SMALL-PIC: # %bb.0:
181 ; SMALL-PIC-NEXT: movl global_data+{{.*}}(%rip), %eax
182 ; SMALL-PIC-NEXT: retq
184 ; MEDIUM-PIC-LABEL: load_global_data:
185 ; MEDIUM-PIC: # %bb.0:
186 ; MEDIUM-PIC-NEXT: leaq {{.*}}(%rip), %rax
187 ; MEDIUM-PIC-NEXT: movabsq $global_data@GOTOFF, %rcx
188 ; MEDIUM-PIC-NEXT: movl 8(%rax,%rcx), %eax
189 ; MEDIUM-PIC-NEXT: retq
191 ; LARGE-PIC-LABEL: load_global_data:
192 ; LARGE-PIC: # %bb.0:
193 ; LARGE-PIC-NEXT: .L3$pb:
194 ; LARGE-PIC-NEXT: leaq .L3${{.*}}(%rip), %rax
195 ; LARGE-PIC-NEXT: movabsq $_GLOBAL_OFFSET_TABLE_-.L3$pb, %rcx
196 ; LARGE-PIC-NEXT: addq %rax, %rcx
197 ; LARGE-PIC-NEXT: movabsq $global_data@GOTOFF, %rax
198 ; LARGE-PIC-NEXT: movl 8(%rcx,%rax), %eax
199 ; LARGE-PIC-NEXT: retq
223 ; SMALL-PIC-LABEL: load_extern_data:
224 ; SMALL-PIC: # %bb.0:
225 ; SMALL-PIC-NEXT: movq extern_data@{{.*}}(%rip), %rax
226 ; SMALL-PIC-NEXT: movl 8(%rax), %eax
227 ; SMALL-PIC-NEXT: retq
229 ; MEDIUM-PIC-LABEL: load_extern_data:
230 ; MEDIUM-PIC: # %bb.0:
231 ; MEDIUM-PIC-NEXT: movq extern_data@{{.*}}(%rip), %rax
232 ; MEDIUM-PIC-NEXT: movl 8(%rax), %eax
233 ; MEDIUM-PIC-NEXT: retq
235 ; LARGE-PIC-LABEL: load_extern_data:
236 ; LARGE-PIC: # %bb.0:
237 ; LARGE-PIC-NEXT: .L4$pb:
238 ; LARGE-PIC-NEXT: leaq .L4${{.*}}(%rip), %rax
239 ; LARGE-PIC-NEXT: movabsq $_GLOBAL_OFFSET_TABLE_-.L4$pb, %rcx
240 ; LARGE-PIC-NEXT: addq %rax, %rcx
241 ; LARGE-PIC-NEXT: movabsq $extern_data@GOT, %rax
242 ; LARGE-PIC-NEXT: movq (%rcx,%rax), %rax
243 ; LARGE-PIC-NEXT: movl 8(%rax), %eax
244 ; LARGE-PIC-NEXT: retq
281 ; SMALL-PIC-LABEL: lea_static_fn:
282 ; SMALL-PIC: # %bb.0:
283 ; SMALL-PIC-NEXT: leaq {{.*}}(%rip), %rax
284 ; SMALL-PIC-NEXT: retq
286 ; MEDIUM-PIC-LABEL: lea_static_fn:
287 ; MEDIUM-PIC: # %bb.0:
288 ; MEDIUM-PIC-NEXT: movabsq $static_fn, %rax
289 ; MEDIUM-PIC-NEXT: retq
291 ; LARGE-PIC-LABEL: lea_static_fn:
292 ; LARGE-PIC: # %bb.0:
293 ; LARGE-PIC-NEXT: .L7$pb:
294 ; LARGE-PIC-NEXT: leaq .L7${{.*}}(%rip), %rax
295 ; LARGE-PIC-NEXT: movabsq $_GLOBAL_OFFSET_TABLE_-.L7$pb, %rcx
296 ; LARGE-PIC-NEXT: addq %rax, %rcx
297 ; LARGE-PIC-NEXT: movabsq $static_fn@GOTOFF, %rax
298 ; LARGE-PIC-NEXT: addq %rcx, %rax
299 ; LARGE-PIC-NEXT: retq
319 ; SMALL-PIC-LABEL: lea_global_fn:
320 ; SMALL-PIC: # %bb.0:
321 ; SMALL-PIC-NEXT: leaq {{.*}}(%rip), %rax
322 ; SMALL-PIC-NEXT: retq
324 ; MEDIUM-PIC-LABEL: lea_global_fn:
325 ; MEDIUM-PIC: # %bb.0:
326 ; MEDIUM-PIC-NEXT: movabsq $global_fn, %rax
327 ; MEDIUM-PIC-NEXT: retq
329 ; LARGE-PIC-LABEL: lea_global_fn:
330 ; LARGE-PIC: # %bb.0:
331 ; LARGE-PIC-NEXT: .L8$pb:
332 ; LARGE-PIC-NEXT: leaq .L8${{.*}}(%rip), %rax
333 ; LARGE-PIC-NEXT: movabsq $_GLOBAL_OFFSET_TABLE_-.L8$pb, %rcx
334 ; LARGE-PIC-NEXT: addq %rax, %rcx
335 ; LARGE-PIC-NEXT: movabsq $global_fn@GOTOFF, %rax
336 ; LARGE-PIC-NEXT: addq %rcx, %rax
337 ; LARGE-PIC-NEXT: retq
357 ; SMALL-PIC-LABEL: lea_extern_fn:
358 ; SMALL-PIC: # %bb.0:
359 ; SMALL-PIC-NEXT: movq extern_fn@{{.*}}(%rip), %rax
360 ; SMALL-PIC-NEXT: retq
362 ; MEDIUM-PIC-LABEL: lea_extern_fn:
363 ; MEDIUM-PIC: # %bb.0:
364 ; MEDIUM-PIC-NEXT: movq extern_fn@{{.*}}(%rip), %rax
365 ; MEDIUM-PIC-NEXT: retq
367 ; LARGE-PIC-LABEL: lea_extern_fn:
368 ; LARGE-PIC: # %bb.0:
369 ; LARGE-PIC-NEXT: .L9$pb:
370 ; LARGE-PIC-NEXT: leaq .L9${{.*}}(%rip), %rax
371 ; LARGE-PIC-NEXT: movabsq $_GLOBAL_OFFSET_TABLE_-.L9$pb, %rcx
372 ; LARGE-PIC-NEXT: addq %rax, %rcx
373 ; LARGE-PIC-NEXT: movabsq $extern_fn@GOT, %rax
374 ; LARGE-PIC-NEXT: movq (%rcx,%rax), %rax
375 ; LARGE-PIC-NEXT: retq
430 ; SMALL-PIC-LABEL: load_constant_pool:
431 ; SMALL-PIC: # %bb.0:
432 ; SMALL-PIC-NEXT: addss {{.*}}(%rip), %xmm0
433 ; SMALL-PIC-NEXT: retq
435 ; MEDIUM-PIC-LABEL: load_constant_pool:
436 ; MEDIUM-PIC: # %bb.0:
437 ; MEDIUM-PIC-NEXT: leaq {{.*}}(%rip), %rax
438 ; MEDIUM-PIC-NEXT: movabsq ${{\.LCPI.*}}@GOTOFF, %rcx
439 ; MEDIUM-PIC-NEXT: addss (%rax,%rcx), %xmm0
440 ; MEDIUM-PIC-NEXT: retq
442 ; LARGE-PIC-LABEL: load_constant_pool:
443 ; LARGE-PIC: # %bb.0:
444 ; LARGE-PIC-NEXT: .L11$pb:
445 ; LARGE-PIC-NEXT: leaq .L11${{.*}}(%rip), %rax
446 ; LARGE-PIC-NEXT: movabsq $_GLOBAL_OFFSET_TABLE_-.L11$pb, %rcx
447 ; LARGE-PIC-NEXT: addq %rax, %rcx
448 ; LARGE-PIC-NEXT: movabsq ${{\.LCPI.*}}@GOTOFF, %rax
449 ; LARGE-PIC-NEXT: addss (%rcx,%rax), %xmm0
450 ; LARGE-PIC-NEXT: retq
461 !1 = !{i32 7, !"PIC Level", i32 2}