Lines Matching refs:PIC
5 ; RUN: | FileCheck -check-prefix=RV32I-PIC %s
19 ; RV32I-PIC-LABEL: test_call_external:
20 ; RV32I-PIC: # %bb.0:
21 ; RV32I-PIC-NEXT: addi sp, sp, -16
22 ; RV32I-PIC-NEXT: sw ra, 12(sp)
23 ; RV32I-PIC-NEXT: call external_function@plt
24 ; RV32I-PIC-NEXT: lw ra, 12(sp)
25 ; RV32I-PIC-NEXT: addi sp, sp, 16
26 ; RV32I-PIC-NEXT: ret
43 ; RV32I-PIC-LABEL: test_call_dso_local:
44 ; RV32I-PIC: # %bb.0:
45 ; RV32I-PIC-NEXT: addi sp, sp, -16
46 ; RV32I-PIC-NEXT: sw ra, 12(sp)
47 ; RV32I-PIC-NEXT: call dso_local_function
48 ; RV32I-PIC-NEXT: lw ra, 12(sp)
49 ; RV32I-PIC-NEXT: addi sp, sp, 16
50 ; RV32I-PIC-NEXT: ret
61 ; RV32I-PIC-LABEL: defined_function:
62 ; RV32I-PIC: # %bb.0:
63 ; RV32I-PIC-NEXT: addi a0, a0, 1
64 ; RV32I-PIC-NEXT: ret
79 ; RV32I-PIC-LABEL: test_call_defined:
80 ; RV32I-PIC: # %bb.0:
81 ; RV32I-PIC-NEXT: addi sp, sp, -16
82 ; RV32I-PIC-NEXT: sw ra, 12(sp)
83 ; RV32I-PIC-NEXT: call defined_function@plt
84 ; RV32I-PIC-NEXT: lw ra, 12(sp)
85 ; RV32I-PIC-NEXT: addi sp, sp, 16
86 ; RV32I-PIC-NEXT: ret
103 ; RV32I-PIC-LABEL: test_call_indirect:
104 ; RV32I-PIC: # %bb.0:
105 ; RV32I-PIC-NEXT: addi sp, sp, -16
106 ; RV32I-PIC-NEXT: sw ra, 12(sp)
107 ; RV32I-PIC-NEXT: mv a2, a0
108 ; RV32I-PIC-NEXT: mv a0, a1
109 ; RV32I-PIC-NEXT: jalr a2
110 ; RV32I-PIC-NEXT: lw ra, 12(sp)
111 ; RV32I-PIC-NEXT: addi sp, sp, 16
112 ; RV32I-PIC-NEXT: ret
126 ; RV32I-PIC-LABEL: fastcc_function:
127 ; RV32I-PIC: # %bb.0:
128 ; RV32I-PIC-NEXT: add a0, a0, a1
129 ; RV32I-PIC-NEXT: ret
148 ; RV32I-PIC-LABEL: test_call_fastcc:
149 ; RV32I-PIC: # %bb.0:
150 ; RV32I-PIC-NEXT: addi sp, sp, -16
151 ; RV32I-PIC-NEXT: sw ra, 12(sp)
152 ; RV32I-PIC-NEXT: sw s0, 8(sp)
153 ; RV32I-PIC-NEXT: mv s0, a0
154 ; RV32I-PIC-NEXT: call fastcc_function@plt
155 ; RV32I-PIC-NEXT: mv a0, s0
156 ; RV32I-PIC-NEXT: lw s0, 8(sp)
157 ; RV32I-PIC-NEXT: lw ra, 12(sp)
158 ; RV32I-PIC-NEXT: addi sp, sp, 16
159 ; RV32I-PIC-NEXT: ret
189 ; RV32I-PIC-LABEL: test_call_external_many_args:
190 ; RV32I-PIC: # %bb.0:
191 ; RV32I-PIC-NEXT: addi sp, sp, -16
192 ; RV32I-PIC-NEXT: sw ra, 12(sp)
193 ; RV32I-PIC-NEXT: sw s0, 8(sp)
194 ; RV32I-PIC-NEXT: mv s0, a0
195 ; RV32I-PIC-NEXT: sw a0, 4(sp)
196 ; RV32I-PIC-NEXT: sw a0, 0(sp)
197 ; RV32I-PIC-NEXT: mv a1, a0
198 ; RV32I-PIC-NEXT: mv a2, a0
199 ; RV32I-PIC-NEXT: mv a3, a0
200 ; RV32I-PIC-NEXT: mv a4, a0
201 ; RV32I-PIC-NEXT: mv a5, a0
202 ; RV32I-PIC-NEXT: mv a6, a0
203 ; RV32I-PIC-NEXT: mv a7, a0
204 ; RV32I-PIC-NEXT: call external_many_args@plt
205 ; RV32I-PIC-NEXT: mv a0, s0
206 ; RV32I-PIC-NEXT: lw s0, 8(sp)
207 ; RV32I-PIC-NEXT: lw ra, 12(sp)
208 ; RV32I-PIC-NEXT: addi sp, sp, 16
209 ; RV32I-PIC-NEXT: ret
222 ; RV32I-PIC-LABEL: defined_many_args:
223 ; RV32I-PIC: # %bb.0:
224 ; RV32I-PIC-NEXT: lw a0, 4(sp)
225 ; RV32I-PIC-NEXT: addi a0, a0, 1
226 ; RV32I-PIC-NEXT: ret
250 ; RV32I-PIC-LABEL: test_call_defined_many_args:
251 ; RV32I-PIC: # %bb.0:
252 ; RV32I-PIC-NEXT: addi sp, sp, -16
253 ; RV32I-PIC-NEXT: sw ra, 12(sp)
254 ; RV32I-PIC-NEXT: sw a0, 4(sp)
255 ; RV32I-PIC-NEXT: sw a0, 0(sp)
256 ; RV32I-PIC-NEXT: mv a1, a0
257 ; RV32I-PIC-NEXT: mv a2, a0
258 ; RV32I-PIC-NEXT: mv a3, a0
259 ; RV32I-PIC-NEXT: mv a4, a0
260 ; RV32I-PIC-NEXT: mv a5, a0
261 ; RV32I-PIC-NEXT: mv a6, a0
262 ; RV32I-PIC-NEXT: mv a7, a0
263 ; RV32I-PIC-NEXT: call defined_many_args@plt
264 ; RV32I-PIC-NEXT: lw ra, 12(sp)
265 ; RV32I-PIC-NEXT: addi sp, sp, 16
266 ; RV32I-PIC-NEXT: ret