• Home
  • Raw
  • Download

Lines Matching refs:PIC

1 …UN: llc -mtriple=thumbv7s-apple-ios7.0 -o - -fast-isel %s | FileCheck %s --check-prefix=T2-MOVT-PIC
2 …llc -mtriple=thumbv7s-apple-ios7.0 -o - %s -mattr=+no-movt | FileCheck %s --check-prefix=T2-LIT-PIC
5 ; RUN: llc -mtriple=armv7s-apple-ios7.0 -o - %s | FileCheck %s --check-prefix=ARM-MOVT-PIC
6 … llc -mtriple=armv7s-apple-ios7.0 -o - %s -mattr=+no-movt | FileCheck %s --check-prefix=ARM-LIT-PIC
17 ; T2-MOVT-PIC-LABEL: test_local_tls:
18 ; T2-MOVT-PIC: movw r0, :lower16:(_local_tls_var-([[PCREL_LOC:LPC[0-9]+_[0-9]+]]+4))
19 ; T2-MOVT-PIC: movt r0, :upper16:(_local_tls_var-([[PCREL_LOC]]+4))
20 ; T2-MOVT-PIC: [[PCREL_LOC]]:
21 ; T2-MOVT-PIC-NEXT: add r0, pc
22 ; T2-MOVT-PIC: ldr [[TLV_GET_ADDR:r[0-9]+]], [r0]
23 ; T2-MOVT-PIC: blx [[TLV_GET_ADDR]]
24 ; T2-MOVT-PIC: ldr r0, [r0]
26 ; T2-LIT-PIC-LABEL: test_local_tls:
27 ; T2-LIT-PIC: ldr r0, [[LOCAL_VAR_ADDR:LCPI[0-9]+_[0-9]+]]
28 ; T2-LIT-PIC: [[PCREL_LOC:LPC[0-9]+_[0-9]+]]:
29 ; T2-LIT-PIC-NEXT: add r0, pc
30 ; T2-LIT-PIC: ldr [[TLV_GET_ADDR:r[0-9]+]], [r0]
31 ; T2-LIT-PIC: blx [[TLV_GET_ADDR]]
32 ; T2-LIT-PIC: ldr r0, [r0]
33 ; T2-LIT-PIC: [[LOCAL_VAR_ADDR]]:
34 ; T2-LIT-PIC-NEXT: .long _local_tls_var-([[PCREL_LOC]]+4)
51 ; ARM-MOVT-PIC-LABEL: test_local_tls:
52 ; ARM-MOVT-PIC: movw [[VARPC1:r[0-9]+]], :lower16:(_local_tls_var-([[PCREL_LOC1:LPC[0-9]+_[0-9]+]]+…
53 ; ARM-MOVT-PIC: movt [[VARPC1]], :upper16:(_local_tls_var-([[PCREL_LOC1]]+8))
54 ; ARM-MOVT-PIC: [[PCREL_LOC1]]:
55 ; ARM-MOVT-PIC: add r0, pc, [[VARPC1]]
56 ; ARM-MOVT-PIC: movw [[VARPC2:r[0-9]+]], :lower16:(_local_tls_var-([[PCREL_LOC2:LPC[0-9]+_[0-9]+]]+…
57 ; ARM-MOVT-PIC: movt [[VARPC2]], :upper16:(_local_tls_var-([[PCREL_LOC2]]+8))
58 ; ARM-MOVT-PIC: [[PCREL_LOC2]]:
59 ; ARM-MOVT-PIC-NEXT: ldr [[TLV_GET_ADDR:r[0-9]+]], [pc, [[VARPC2]]]
60 ; ARM-MOVT-PIC: blx [[TLV_GET_ADDR]]
61 ; ARM-MOVT-PIC: ldr r0, [r0]
63 ; ARM-LIT-PIC-LABEL: test_local_tls:
64 ; ARM-LIT-PIC: ldr r0, [[LOCAL_VAR_ADDR:LCPI[0-9]+_[0-9]+]]
65 ; ARM-LIT-PIC: [[PCREL_LOC:LPC[0-9]+_[0-9]+]]:
66 ; ARM-LIT-PIC-NEXT: add r0, pc
67 ; ARM-LIT-PIC: ldr [[TLV_GET_ADDR:r[0-9]+]], [r0]
68 ; ARM-LIT-PIC: blx [[TLV_GET_ADDR]]
69 ; ARM-LIT-PIC: ldr r0, [r0]
70 ; ARM-LIT-PIC: [[LOCAL_VAR_ADDR]]:
71 ; ARM-LIT-PIC-NEXT: .long _local_tls_var-([[PCREL_LOC]]+8)
94 ; T2-MOVT-PIC-LABEL: test_external_tls:
95 ; T2-MOVT-PIC: movw r[[EXTGOT:[0-9]+]], :lower16:(L_external_tls_var$non_lazy_ptr-([[PCREL_LOC:LPC[…
96 ; T2-MOVT-PIC: movt r[[EXTGOT]], :upper16:(L_external_tls_var$non_lazy_ptr-([[PCREL_LOC]]+4))
97 ; T2-MOVT-PIC: [[PCREL_LOC]]:
98 ; T2-MOVT-PIC-NEXT: add r[[EXTGOT]], pc
99 ; T2-MOVT-PIC: ldr r0, [r[[EXTGOT]]]
100 ; T2-MOVT-PIC: ldr [[TLV_GET_ADDR:r[0-9]+]], [r0]
101 ; T2-MOVT-PIC: blx [[TLV_GET_ADDR]]
102 ; T2-MOVT-PIC: ldr r0, [r0]
104 ; T2-LIT-PIC-LABEL: test_external_tls:
105 ; T2-LIT-PIC: ldr r[[EXTGOT:[0-9]+]], [[EXTERNAL_VAR_ADDR:LCPI[0-9]+_[0-9]+]]
106 ; T2-LIT-PIC: [[PCREL_LOC:LPC[0-9]+_[0-9]+]]:
107 ; T2-LIT-PIC-NEXT: add r[[EXTGOT]], pc
108 ; T2-LIT-PIC: ldr r0, [r[[EXTGOT]]]
109 ; T2-LIT-PIC: ldr [[TLV_GET_ADDR:r[0-9]+]], [r0]
110 ; T2-LIT-PIC: blx [[TLV_GET_ADDR]]
111 ; T2-LIT-PIC: ldr r0, [r0]
112 ; T2-LIT-PIC: [[EXTERNAL_VAR_ADDR]]:
113 ; T2-LIT-PIC-NEXT: .long L_external_tls_var$non_lazy_ptr-([[PCREL_LOC]]+4)
130 ; ARM-MOVT-PIC-LABEL: test_external_tls:
131 ; ARM-MOVT-PIC: movw r[[EXTGOT:[0-9]+]], :lower16:(L_external_tls_var$non_lazy_ptr-([[PCREL_LOC:LPC…
132 ; ARM-MOVT-PIC: movt r[[EXTGOT]], :upper16:(L_external_tls_var$non_lazy_ptr-([[PCREL_LOC]]+8))
133 ; ARM-MOVT-PIC: [[PCREL_LOC]]:
134 ; ARM-MOVT-PIC-NEXT: ldr r0, [pc, r[[EXTGOT]]]
135 ; ARM-MOVT-PIC: ldr [[TLV_GET_ADDR:r[0-9]+]], [r0]
136 ; ARM-MOVT-PIC: blx [[TLV_GET_ADDR]]
137 ; ARM-MOVT-PIC: ldr r0, [r0]
139 ; ARM-LIT-PIC-LABEL: test_external_tls:
140 ; ARM-LIT-PIC: ldr r[[EXTGOT:[0-9]+]], [[EXTERNAL_VAR_ADDR:LCPI[0-9]+_[0-9]+]]
141 ; ARM-LIT-PIC: [[PCREL_LOC:LPC[0-9]+_[0-9]+]]:
142 ; ARM-LIT-PIC-NEXT: add r[[EXTGOT]], pc
143 ; ARM-LIT-PIC: ldr r0, [r[[EXTGOT]]]
144 ; ARM-LIT-PIC: ldr [[TLV_GET_ADDR:r[0-9]+]], [r0]
145 ; ARM-LIT-PIC: blx [[TLV_GET_ADDR]]
146 ; ARM-LIT-PIC: ldr r0, [r0]
147 ; ARM-LIT-PIC: [[EXTERNAL_VAR_ADDR]]:
148 ; ARM-LIT-PIC-NEXT: .long L_external_tls_var$non_lazy_ptr-([[PCREL_LOC]]+8)
175 ; T2-MOVT-PIC: .section __DATA,__thread_ptr,thread_local_variable_pointers
176 ; T2-MOVT-PIC: .p2align 2
177 ; T2-MOVT-PIC: L_external_tls_var$non_lazy_ptr:
178 ; T2-MOVT-PIC: .indirect_symbol _external_tls_var
179 ; T2-MOVT-PIC: .long 0
180 ; T2-MOVT-PIC: L_hidden_external_tls_var$non_lazy_ptr:
181 ; T2-MOVT-PIC: .indirect_symbol _hidden_external_tls_var
182 ; T2-MOVT-PIC: .long 0