@@ -112,47 +112,37 @@ define void @constpool_f64(ptr %p) {
112
112
define void @constpool_f32_1234_5 (ptr %p ) {
113
113
; RV32-SMALL-LABEL: constpool_f32_1234_5:
114
114
; RV32-SMALL: # %bb.0:
115
- ; RV32-SMALL-NEXT: lui a1, %hi(.LCPI2_0)
116
- ; RV32-SMALL-NEXT: lw a1, %lo(.LCPI2_0)(a1)
115
+ ; RV32-SMALL-NEXT: lui a1, 280997
117
116
; RV32-SMALL-NEXT: sw a1, 0(a0)
118
117
; RV32-SMALL-NEXT: ret
119
118
;
120
119
; RV32-MEDIUM-LABEL: constpool_f32_1234_5:
121
120
; RV32-MEDIUM: # %bb.0:
122
- ; RV32-MEDIUM-NEXT: .Lpcrel_hi1:
123
- ; RV32-MEDIUM-NEXT: auipc a1, %pcrel_hi(.LCPI2_0)
124
- ; RV32-MEDIUM-NEXT: lw a1, %pcrel_lo(.Lpcrel_hi1)(a1)
121
+ ; RV32-MEDIUM-NEXT: lui a1, 280997
125
122
; RV32-MEDIUM-NEXT: sw a1, 0(a0)
126
123
; RV32-MEDIUM-NEXT: ret
127
124
;
128
125
; RV32-PIC-LABEL: constpool_f32_1234_5:
129
126
; RV32-PIC: # %bb.0:
130
- ; RV32-PIC-NEXT: .Lpcrel_hi1:
131
- ; RV32-PIC-NEXT: auipc a1, %pcrel_hi(.LCPI2_0)
132
- ; RV32-PIC-NEXT: lw a1, %pcrel_lo(.Lpcrel_hi1)(a1)
127
+ ; RV32-PIC-NEXT: lui a1, 280997
133
128
; RV32-PIC-NEXT: sw a1, 0(a0)
134
129
; RV32-PIC-NEXT: ret
135
130
;
136
131
; RV64-SMALL-LABEL: constpool_f32_1234_5:
137
132
; RV64-SMALL: # %bb.0:
138
- ; RV64-SMALL-NEXT: lui a1, %hi(.LCPI2_0)
139
- ; RV64-SMALL-NEXT: lw a1, %lo(.LCPI2_0)(a1)
133
+ ; RV64-SMALL-NEXT: lui a1, 280997
140
134
; RV64-SMALL-NEXT: sw a1, 0(a0)
141
135
; RV64-SMALL-NEXT: ret
142
136
;
143
137
; RV64-MEDIUM-LABEL: constpool_f32_1234_5:
144
138
; RV64-MEDIUM: # %bb.0:
145
- ; RV64-MEDIUM-NEXT: .Lpcrel_hi0:
146
- ; RV64-MEDIUM-NEXT: auipc a1, %pcrel_hi(.LCPI2_0)
147
- ; RV64-MEDIUM-NEXT: lw a1, %pcrel_lo(.Lpcrel_hi0)(a1)
139
+ ; RV64-MEDIUM-NEXT: lui a1, 280997
148
140
; RV64-MEDIUM-NEXT: sw a1, 0(a0)
149
141
; RV64-MEDIUM-NEXT: ret
150
142
;
151
143
; RV64-PIC-LABEL: constpool_f32_1234_5:
152
144
; RV64-PIC: # %bb.0:
153
- ; RV64-PIC-NEXT: .Lpcrel_hi0:
154
- ; RV64-PIC-NEXT: auipc a1, %pcrel_hi(.LCPI2_0)
155
- ; RV64-PIC-NEXT: lw a1, %pcrel_lo(.Lpcrel_hi0)(a1)
145
+ ; RV64-PIC-NEXT: lui a1, 280997
156
146
; RV64-PIC-NEXT: sw a1, 0(a0)
157
147
; RV64-PIC-NEXT: ret
158
148
store float 1 .234500e+03 , ptr %p
@@ -172,9 +162,9 @@ define void @constpool_f64_1234_5(ptr %p) {
172
162
;
173
163
; RV32-MEDIUM-LABEL: constpool_f64_1234_5:
174
164
; RV32-MEDIUM: # %bb.0:
175
- ; RV32-MEDIUM-NEXT: .Lpcrel_hi2 :
165
+ ; RV32-MEDIUM-NEXT: .Lpcrel_hi1 :
176
166
; RV32-MEDIUM-NEXT: auipc a1, %pcrel_hi(.LCPI3_0)
177
- ; RV32-MEDIUM-NEXT: addi a1, a1, %pcrel_lo(.Lpcrel_hi2 )
167
+ ; RV32-MEDIUM-NEXT: addi a1, a1, %pcrel_lo(.Lpcrel_hi1 )
178
168
; RV32-MEDIUM-NEXT: lw a2, 0(a1)
179
169
; RV32-MEDIUM-NEXT: lw a1, 4(a1)
180
170
; RV32-MEDIUM-NEXT: sw a2, 0(a0)
@@ -183,9 +173,9 @@ define void @constpool_f64_1234_5(ptr %p) {
183
173
;
184
174
; RV32-PIC-LABEL: constpool_f64_1234_5:
185
175
; RV32-PIC: # %bb.0:
186
- ; RV32-PIC-NEXT: .Lpcrel_hi2 :
176
+ ; RV32-PIC-NEXT: .Lpcrel_hi1 :
187
177
; RV32-PIC-NEXT: auipc a1, %pcrel_hi(.LCPI3_0)
188
- ; RV32-PIC-NEXT: addi a1, a1, %pcrel_lo(.Lpcrel_hi2 )
178
+ ; RV32-PIC-NEXT: addi a1, a1, %pcrel_lo(.Lpcrel_hi1 )
189
179
; RV32-PIC-NEXT: lw a2, 0(a1)
190
180
; RV32-PIC-NEXT: lw a1, 4(a1)
191
181
; RV32-PIC-NEXT: sw a2, 0(a0)
@@ -194,24 +184,25 @@ define void @constpool_f64_1234_5(ptr %p) {
194
184
;
195
185
; RV64-SMALL-LABEL: constpool_f64_1234_5:
196
186
; RV64-SMALL: # %bb.0:
197
- ; RV64-SMALL-NEXT: lui a1, %hi(.LCPI3_0)
198
- ; RV64-SMALL-NEXT: ld a1, %lo(.LCPI3_0)(a1)
187
+ ; RV64-SMALL-NEXT: lui a1, 517
188
+ ; RV64-SMALL-NEXT: addi a1, a1, -1627
189
+ ; RV64-SMALL-NEXT: slli a1, a1, 41
199
190
; RV64-SMALL-NEXT: sd a1, 0(a0)
200
191
; RV64-SMALL-NEXT: ret
201
192
;
202
193
; RV64-MEDIUM-LABEL: constpool_f64_1234_5:
203
194
; RV64-MEDIUM: # %bb.0:
204
- ; RV64-MEDIUM-NEXT: .Lpcrel_hi1:
205
- ; RV64-MEDIUM-NEXT: auipc a1, %pcrel_hi(.LCPI3_0)
206
- ; RV64-MEDIUM-NEXT: ld a1, %pcrel_lo(.Lpcrel_hi1)(a1)
195
+ ; RV64-MEDIUM-NEXT: lui a1, 517
196
+ ; RV64-MEDIUM-NEXT: addi a1, a1, -1627
197
+ ; RV64-MEDIUM-NEXT: slli a1, a1, 41
207
198
; RV64-MEDIUM-NEXT: sd a1, 0(a0)
208
199
; RV64-MEDIUM-NEXT: ret
209
200
;
210
201
; RV64-PIC-LABEL: constpool_f64_1234_5:
211
202
; RV64-PIC: # %bb.0:
212
- ; RV64-PIC-NEXT: .Lpcrel_hi1:
213
- ; RV64-PIC-NEXT: auipc a1, %pcrel_hi(.LCPI3_0)
214
- ; RV64-PIC-NEXT: ld a1, %pcrel_lo(.Lpcrel_hi1)(a1)
203
+ ; RV64-PIC-NEXT: lui a1, 517
204
+ ; RV64-PIC-NEXT: addi a1, a1, -1627
205
+ ; RV64-PIC-NEXT: slli a1, a1, 41
215
206
; RV64-PIC-NEXT: sd a1, 0(a0)
216
207
; RV64-PIC-NEXT: ret
217
208
store double 1 .234500e+03 , ptr %p
0 commit comments