• Home
  • Raw
  • Download

Lines Matching refs:PIC

3 ; RUN:     | FileCheck -check-prefix=RV32-PIC %s
5 ; RUN: | FileCheck -check-prefix=RV64-PIC %s
22 ; RV32-PIC-LABEL: f1:
23 ; RV32-PIC: # %bb.0: # %entry
24 ; RV32-PIC-NEXT: addi sp, sp, -16
25 ; RV32-PIC-NEXT: sw ra, 12(sp)
26 ; RV32-PIC-NEXT: .LBB0_1: # %entry
27 ; RV32-PIC-NEXT: # Label of block must be emitted
28 ; RV32-PIC-NEXT: auipc a0, %tls_gd_pcrel_hi(unspecified)
29 ; RV32-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB0_1)
30 ; RV32-PIC-NEXT: call __tls_get_addr@plt
31 ; RV32-PIC-NEXT: lw ra, 12(sp)
32 ; RV32-PIC-NEXT: addi sp, sp, 16
33 ; RV32-PIC-NEXT: ret
35 ; RV64-PIC-LABEL: f1:
36 ; RV64-PIC: # %bb.0: # %entry
37 ; RV64-PIC-NEXT: addi sp, sp, -16
38 ; RV64-PIC-NEXT: sd ra, 8(sp)
39 ; RV64-PIC-NEXT: .LBB0_1: # %entry
40 ; RV64-PIC-NEXT: # Label of block must be emitted
41 ; RV64-PIC-NEXT: auipc a0, %tls_gd_pcrel_hi(unspecified)
42 ; RV64-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB0_1)
43 ; RV64-PIC-NEXT: call __tls_get_addr@plt
44 ; RV64-PIC-NEXT: ld ra, 8(sp)
45 ; RV64-PIC-NEXT: addi sp, sp, 16
46 ; RV64-PIC-NEXT: ret
73 ; RV32-PIC-LABEL: f2:
74 ; RV32-PIC: # %bb.0: # %entry
75 ; RV32-PIC-NEXT: addi sp, sp, -16
76 ; RV32-PIC-NEXT: sw ra, 12(sp)
77 ; RV32-PIC-NEXT: .LBB1_1: # %entry
78 ; RV32-PIC-NEXT: # Label of block must be emitted
79 ; RV32-PIC-NEXT: auipc a0, %tls_gd_pcrel_hi(ld)
80 ; RV32-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB1_1)
81 ; RV32-PIC-NEXT: call __tls_get_addr@plt
82 ; RV32-PIC-NEXT: lw ra, 12(sp)
83 ; RV32-PIC-NEXT: addi sp, sp, 16
84 ; RV32-PIC-NEXT: ret
86 ; RV64-PIC-LABEL: f2:
87 ; RV64-PIC: # %bb.0: # %entry
88 ; RV64-PIC-NEXT: addi sp, sp, -16
89 ; RV64-PIC-NEXT: sd ra, 8(sp)
90 ; RV64-PIC-NEXT: .LBB1_1: # %entry
91 ; RV64-PIC-NEXT: # Label of block must be emitted
92 ; RV64-PIC-NEXT: auipc a0, %tls_gd_pcrel_hi(ld)
93 ; RV64-PIC-NEXT: addi a0, a0, %pcrel_lo(.LBB1_1)
94 ; RV64-PIC-NEXT: call __tls_get_addr@plt
95 ; RV64-PIC-NEXT: ld ra, 8(sp)
96 ; RV64-PIC-NEXT: addi sp, sp, 16
97 ; RV64-PIC-NEXT: ret
124 ; RV32-PIC-LABEL: f3:
125 ; RV32-PIC: # %bb.0: # %entry
126 ; RV32-PIC-NEXT: .LBB2_1: # %entry
127 ; RV32-PIC-NEXT: # Label of block must be emitted
128 ; RV32-PIC-NEXT: auipc a0, %tls_ie_pcrel_hi(ie)
129 ; RV32-PIC-NEXT: lw a0, %pcrel_lo(.LBB2_1)(a0)
130 ; RV32-PIC-NEXT: add a0, a0, tp
131 ; RV32-PIC-NEXT: ret
133 ; RV64-PIC-LABEL: f3:
134 ; RV64-PIC: # %bb.0: # %entry
135 ; RV64-PIC-NEXT: .LBB2_1: # %entry
136 ; RV64-PIC-NEXT: # Label of block must be emitted
137 ; RV64-PIC-NEXT: auipc a0, %tls_ie_pcrel_hi(ie)
138 ; RV64-PIC-NEXT: ld a0, %pcrel_lo(.LBB2_1)(a0)
139 ; RV64-PIC-NEXT: add a0, a0, tp
140 ; RV64-PIC-NEXT: ret
167 ; RV32-PIC-LABEL: f4:
168 ; RV32-PIC: # %bb.0: # %entry
169 ; RV32-PIC-NEXT: lui a0, %tprel_hi(le)
170 ; RV32-PIC-NEXT: add a0, a0, tp, %tprel_add(le)
171 ; RV32-PIC-NEXT: addi a0, a0, %tprel_lo(le)
172 ; RV32-PIC-NEXT: ret
174 ; RV64-PIC-LABEL: f4:
175 ; RV64-PIC: # %bb.0: # %entry
176 ; RV64-PIC-NEXT: lui a0, %tprel_hi(le)
177 ; RV64-PIC-NEXT: add a0, a0, tp, %tprel_add(le)
178 ; RV64-PIC-NEXT: addi a0, a0, %tprel_lo(le)
179 ; RV64-PIC-NEXT: ret