Lines Matching refs:PIC
5 ; RUN: | FileCheck %s --check-prefix=RV32-PIC
9 ; RUN: | FileCheck %s --check-prefix=RV64-PIC
19 ; RV32-PIC-LABEL: get_preemptable_var:
20 ; RV32-PIC: # %bb.0:
21 ; RV32-PIC-NEXT: .LBB0_1: # Label of block must be emitted
22 ; RV32-PIC-NEXT: auipc a0, %got_pcrel_hi(preemptable_var)
23 ; RV32-PIC-NEXT: lw a0, %pcrel_lo(.LBB0_1)(a0)
24 ; RV32-PIC-NEXT: ret
32 ; RV64-PIC-LABEL: get_preemptable_var:
33 ; RV64-PIC: # %bb.0:
34 ; RV64-PIC-NEXT: .LBB0_1: # Label of block must be emitted
35 ; RV64-PIC-NEXT: auipc a0, %got_pcrel_hi(preemptable_var)
36 ; RV64-PIC-NEXT: ld a0, %pcrel_lo(.LBB0_1)(a0)
37 ; RV64-PIC-NEXT: ret
49 ; RV32-PIC-LABEL: get_dsolocal_var:
50 ; RV32-PIC: # %bb.0:
51 ; RV32-PIC-NEXT: .LBB1_1: # Label of block must be emitted
52 ; RV32-PIC-NEXT: auipc a0, %pcrel_hi(.Ldsolocal_var$local)
53 ; RV32-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB1_1)
54 ; RV32-PIC-NEXT: ret
62 ; RV64-PIC-LABEL: get_dsolocal_var:
63 ; RV64-PIC: # %bb.0:
64 ; RV64-PIC-NEXT: .LBB1_1: # Label of block must be emitted
65 ; RV64-PIC-NEXT: auipc a0, %pcrel_hi(.Ldsolocal_var$local)
66 ; RV64-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB1_1)
67 ; RV64-PIC-NEXT: ret
79 ; RV32-PIC-LABEL: get_weak_dsolocal_var:
80 ; RV32-PIC: # %bb.0:
81 ; RV32-PIC-NEXT: .LBB2_1: # Label of block must be emitted
82 ; RV32-PIC-NEXT: auipc a0, %pcrel_hi(weak_dsolocal_var)
83 ; RV32-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB2_1)
84 ; RV32-PIC-NEXT: ret
92 ; RV64-PIC-LABEL: get_weak_dsolocal_var:
93 ; RV64-PIC: # %bb.0:
94 ; RV64-PIC-NEXT: .LBB2_1: # Label of block must be emitted
95 ; RV64-PIC-NEXT: auipc a0, %pcrel_hi(weak_dsolocal_var)
96 ; RV64-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB2_1)
97 ; RV64-PIC-NEXT: ret
109 ; RV32-PIC-LABEL: get_hidden_var:
110 ; RV32-PIC: # %bb.0:
111 ; RV32-PIC-NEXT: .LBB3_1: # Label of block must be emitted
112 ; RV32-PIC-NEXT: auipc a0, %pcrel_hi(hidden_var)
113 ; RV32-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB3_1)
114 ; RV32-PIC-NEXT: ret
122 ; RV64-PIC-LABEL: get_hidden_var:
123 ; RV64-PIC: # %bb.0:
124 ; RV64-PIC-NEXT: .LBB3_1: # Label of block must be emitted
125 ; RV64-PIC-NEXT: auipc a0, %pcrel_hi(hidden_var)
126 ; RV64-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB3_1)
127 ; RV64-PIC-NEXT: ret
139 ; RV32-PIC-LABEL: get_protected_var:
140 ; RV32-PIC: # %bb.0:
141 ; RV32-PIC-NEXT: .LBB4_1: # Label of block must be emitted
142 ; RV32-PIC-NEXT: auipc a0, %pcrel_hi(protected_var)
143 ; RV32-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB4_1)
144 ; RV32-PIC-NEXT: ret
152 ; RV64-PIC-LABEL: get_protected_var:
153 ; RV64-PIC: # %bb.0:
154 ; RV64-PIC-NEXT: .LBB4_1: # Label of block must be emitted
155 ; RV64-PIC-NEXT: auipc a0, %pcrel_hi(protected_var)
156 ; RV64-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB4_1)
157 ; RV64-PIC-NEXT: ret
168 ; RV32-PIC-LABEL: preemptable_func:
169 ; RV32-PIC: # %bb.0:
170 ; RV32-PIC-NEXT: .LBB5_1: # Label of block must be emitted
171 ; RV32-PIC-NEXT: auipc a0, %got_pcrel_hi(preemptable_func)
172 ; RV32-PIC-NEXT: lw a0, %pcrel_lo(.LBB5_1)(a0)
173 ; RV32-PIC-NEXT: ret
181 ; RV64-PIC-LABEL: preemptable_func:
182 ; RV64-PIC: # %bb.0:
183 ; RV64-PIC-NEXT: .LBB5_1: # Label of block must be emitted
184 ; RV64-PIC-NEXT: auipc a0, %got_pcrel_hi(preemptable_func)
185 ; RV64-PIC-NEXT: ld a0, %pcrel_lo(.LBB5_1)(a0)
186 ; RV64-PIC-NEXT: ret
197 ; RV32-PIC-LABEL: dsolocal_func:
198 ; RV32-PIC: # %bb.0:
199 ; RV32-PIC-NEXT: .LBB6_1: # Label of block must be emitted
200 ; RV32-PIC-NEXT: auipc a0, %pcrel_hi(.Ldsolocal_func$local)
201 ; RV32-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB6_1)
202 ; RV32-PIC-NEXT: ret
210 ; RV64-PIC-LABEL: dsolocal_func:
211 ; RV64-PIC: # %bb.0:
212 ; RV64-PIC-NEXT: .LBB6_1: # Label of block must be emitted
213 ; RV64-PIC-NEXT: auipc a0, %pcrel_hi(.Ldsolocal_func$local)
214 ; RV64-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB6_1)
215 ; RV64-PIC-NEXT: ret
226 ; RV32-PIC-LABEL: weak_dsolocal_func:
227 ; RV32-PIC: # %bb.0:
228 ; RV32-PIC-NEXT: .LBB7_1: # Label of block must be emitted
229 ; RV32-PIC-NEXT: auipc a0, %pcrel_hi(weak_dsolocal_func)
230 ; RV32-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB7_1)
231 ; RV32-PIC-NEXT: ret
239 ; RV64-PIC-LABEL: weak_dsolocal_func:
240 ; RV64-PIC: # %bb.0:
241 ; RV64-PIC-NEXT: .LBB7_1: # Label of block must be emitted
242 ; RV64-PIC-NEXT: auipc a0, %pcrel_hi(weak_dsolocal_func)
243 ; RV64-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB7_1)
244 ; RV64-PIC-NEXT: ret
260 ; RV32-PIC-LABEL: call_dsolocal_func:
261 ; RV32-PIC: # %bb.0:
262 ; RV32-PIC-NEXT: addi sp, sp, -16
263 ; RV32-PIC-NEXT: sw ra, 12(sp) # 4-byte Folded Spill
264 ; RV32-PIC-NEXT: call .Ldsolocal_func$local
265 ; RV32-PIC-NEXT: lw ra, 12(sp) # 4-byte Folded Reload
266 ; RV32-PIC-NEXT: addi sp, sp, 16
267 ; RV32-PIC-NEXT: ret
278 ; RV64-PIC-LABEL: call_dsolocal_func:
279 ; RV64-PIC: # %bb.0:
280 ; RV64-PIC-NEXT: addi sp, sp, -16
281 ; RV64-PIC-NEXT: sd ra, 8(sp) # 8-byte Folded Spill
282 ; RV64-PIC-NEXT: call .Ldsolocal_func$local
283 ; RV64-PIC-NEXT: ld ra, 8(sp) # 8-byte Folded Reload
284 ; RV64-PIC-NEXT: addi sp, sp, 16
285 ; RV64-PIC-NEXT: ret