File: stack-probing-rvv.ll

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (400 lines) | stat: -rw-r--r-- 14,892 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=riscv64 -mattr=+m,+v -O2 < %s \
; RUN:   | FileCheck %s -check-prefix=RV64IV
; RUN: llc -mtriple=riscv32 -mattr=+m,+v -O2 < %s \
; RUN:   | FileCheck %s -check-prefix=RV32IV

; Tests adapted from AArch64.

; Test prolog sequences for stack probing when vector is involved.

; The space for vector objects needs probing in the general case, because
; the stack adjustment may happen to be too big (i.e. greater than the
; probe size).

define void @f_vector(ptr %out) #0 {
; RV64IV-LABEL: f_vector:
; RV64IV:       # %bb.0: # %entry
; RV64IV-NEXT:    csrr t1, vlenb
; RV64IV-NEXT:    slli t1, t1, 1
; RV64IV-NEXT:    .cfi_def_cfa t1, -16
; RV64IV-NEXT:    lui t2, 1
; RV64IV-NEXT:  .LBB0_1: # %entry
; RV64IV-NEXT:    # =>This Inner Loop Header: Depth=1
; RV64IV-NEXT:    sub sp, sp, t2
; RV64IV-NEXT:    sd zero, 0(sp)
; RV64IV-NEXT:    sub t1, t1, t2
; RV64IV-NEXT:    bge t1, t2, .LBB0_1
; RV64IV-NEXT:  # %bb.2: # %entry
; RV64IV-NEXT:    .cfi_def_cfa_register sp
; RV64IV-NEXT:    sub sp, sp, t1
; RV64IV-NEXT:    .cfi_escape 0x0f, 0x0a, 0x72, 0x00, 0x11, 0x02, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 2 * vlenb
; RV64IV-NEXT:    csrr a0, vlenb
; RV64IV-NEXT:    slli a0, a0, 1
; RV64IV-NEXT:    add sp, sp, a0
; RV64IV-NEXT:    .cfi_def_cfa sp, 0
; RV64IV-NEXT:    ret
;
; RV32IV-LABEL: f_vector:
; RV32IV:       # %bb.0: # %entry
; RV32IV-NEXT:    csrr t1, vlenb
; RV32IV-NEXT:    slli t1, t1, 1
; RV32IV-NEXT:    .cfi_def_cfa t1, -16
; RV32IV-NEXT:    lui t2, 1
; RV32IV-NEXT:  .LBB0_1: # %entry
; RV32IV-NEXT:    # =>This Inner Loop Header: Depth=1
; RV32IV-NEXT:    sub sp, sp, t2
; RV32IV-NEXT:    sw zero, 0(sp)
; RV32IV-NEXT:    sub t1, t1, t2
; RV32IV-NEXT:    bge t1, t2, .LBB0_1
; RV32IV-NEXT:  # %bb.2: # %entry
; RV32IV-NEXT:    .cfi_def_cfa_register sp
; RV32IV-NEXT:    sub sp, sp, t1
; RV32IV-NEXT:    .cfi_escape 0x0f, 0x0a, 0x72, 0x00, 0x11, 0x02, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 2 * vlenb
; RV32IV-NEXT:    csrr a0, vlenb
; RV32IV-NEXT:    slli a0, a0, 1
; RV32IV-NEXT:    add sp, sp, a0
; RV32IV-NEXT:    .cfi_def_cfa sp, 0
; RV32IV-NEXT:    ret
entry:
  %vec = alloca <vscale x 4 x float>, align 16
  ret void
}

; As above, but with 4 vectors of stack space.
define void @f4_vector(ptr %out) #0 {
; RV64IV-LABEL: f4_vector:
; RV64IV:       # %bb.0: # %entry
; RV64IV-NEXT:    csrr t1, vlenb
; RV64IV-NEXT:    slli t1, t1, 3
; RV64IV-NEXT:    .cfi_def_cfa t1, -64
; RV64IV-NEXT:    lui t2, 1
; RV64IV-NEXT:  .LBB1_1: # %entry
; RV64IV-NEXT:    # =>This Inner Loop Header: Depth=1
; RV64IV-NEXT:    sub sp, sp, t2
; RV64IV-NEXT:    sd zero, 0(sp)
; RV64IV-NEXT:    sub t1, t1, t2
; RV64IV-NEXT:    bge t1, t2, .LBB1_1
; RV64IV-NEXT:  # %bb.2: # %entry
; RV64IV-NEXT:    .cfi_def_cfa_register sp
; RV64IV-NEXT:    sub sp, sp, t1
; RV64IV-NEXT:    .cfi_escape 0x0f, 0x0a, 0x72, 0x00, 0x11, 0x08, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 8 * vlenb
; RV64IV-NEXT:    csrr a0, vlenb
; RV64IV-NEXT:    slli a0, a0, 3
; RV64IV-NEXT:    add sp, sp, a0
; RV64IV-NEXT:    .cfi_def_cfa sp, 0
; RV64IV-NEXT:    ret
;
; RV32IV-LABEL: f4_vector:
; RV32IV:       # %bb.0: # %entry
; RV32IV-NEXT:    csrr t1, vlenb
; RV32IV-NEXT:    slli t1, t1, 3
; RV32IV-NEXT:    .cfi_def_cfa t1, -64
; RV32IV-NEXT:    lui t2, 1
; RV32IV-NEXT:  .LBB1_1: # %entry
; RV32IV-NEXT:    # =>This Inner Loop Header: Depth=1
; RV32IV-NEXT:    sub sp, sp, t2
; RV32IV-NEXT:    sw zero, 0(sp)
; RV32IV-NEXT:    sub t1, t1, t2
; RV32IV-NEXT:    bge t1, t2, .LBB1_1
; RV32IV-NEXT:  # %bb.2: # %entry
; RV32IV-NEXT:    .cfi_def_cfa_register sp
; RV32IV-NEXT:    sub sp, sp, t1
; RV32IV-NEXT:    .cfi_escape 0x0f, 0x0a, 0x72, 0x00, 0x11, 0x08, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 8 * vlenb
; RV32IV-NEXT:    csrr a0, vlenb
; RV32IV-NEXT:    slli a0, a0, 3
; RV32IV-NEXT:    add sp, sp, a0
; RV32IV-NEXT:    .cfi_def_cfa sp, 0
; RV32IV-NEXT:    ret
entry:
  %vec1 = alloca <vscale x 4 x float>, align 16
  %vec2 = alloca <vscale x 4 x float>, align 16
  %vec3 = alloca <vscale x 4 x float>, align 16
  %vec4 = alloca <vscale x 4 x float>, align 16
  ret void
}

; As above, but with 16 vectors of stack space.
; The stack adjustment is less than or equal to 16 x 256 = 4096, so
; we can allocate the locals at once.
define void @f16_vector(ptr %out) #0 {
; RV64IV-LABEL: f16_vector:
; RV64IV:       # %bb.0: # %entry
; RV64IV-NEXT:    csrr t1, vlenb
; RV64IV-NEXT:    slli t1, t1, 5
; RV64IV-NEXT:    .cfi_def_cfa t1, -256
; RV64IV-NEXT:    lui t2, 1
; RV64IV-NEXT:  .LBB2_1: # %entry
; RV64IV-NEXT:    # =>This Inner Loop Header: Depth=1
; RV64IV-NEXT:    sub sp, sp, t2
; RV64IV-NEXT:    sd zero, 0(sp)
; RV64IV-NEXT:    sub t1, t1, t2
; RV64IV-NEXT:    bge t1, t2, .LBB2_1
; RV64IV-NEXT:  # %bb.2: # %entry
; RV64IV-NEXT:    .cfi_def_cfa_register sp
; RV64IV-NEXT:    sub sp, sp, t1
; RV64IV-NEXT:    .cfi_escape 0x0f, 0x0a, 0x72, 0x00, 0x11, 0x20, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 32 * vlenb
; RV64IV-NEXT:    csrr a0, vlenb
; RV64IV-NEXT:    slli a0, a0, 5
; RV64IV-NEXT:    add sp, sp, a0
; RV64IV-NEXT:    .cfi_def_cfa sp, 0
; RV64IV-NEXT:    ret
;
; RV32IV-LABEL: f16_vector:
; RV32IV:       # %bb.0: # %entry
; RV32IV-NEXT:    csrr t1, vlenb
; RV32IV-NEXT:    slli t1, t1, 5
; RV32IV-NEXT:    .cfi_def_cfa t1, -256
; RV32IV-NEXT:    lui t2, 1
; RV32IV-NEXT:  .LBB2_1: # %entry
; RV32IV-NEXT:    # =>This Inner Loop Header: Depth=1
; RV32IV-NEXT:    sub sp, sp, t2
; RV32IV-NEXT:    sw zero, 0(sp)
; RV32IV-NEXT:    sub t1, t1, t2
; RV32IV-NEXT:    bge t1, t2, .LBB2_1
; RV32IV-NEXT:  # %bb.2: # %entry
; RV32IV-NEXT:    .cfi_def_cfa_register sp
; RV32IV-NEXT:    sub sp, sp, t1
; RV32IV-NEXT:    .cfi_escape 0x0f, 0x0a, 0x72, 0x00, 0x11, 0x20, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 32 * vlenb
; RV32IV-NEXT:    csrr a0, vlenb
; RV32IV-NEXT:    slli a0, a0, 5
; RV32IV-NEXT:    add sp, sp, a0
; RV32IV-NEXT:    .cfi_def_cfa sp, 0
; RV32IV-NEXT:    ret
entry:
  %vec1 = alloca <vscale x 4 x float>, align 16
  %vec2 = alloca <vscale x 4 x float>, align 16
  %vec3 = alloca <vscale x 4 x float>, align 16
  %vec4 = alloca <vscale x 4 x float>, align 16
  %vec5 = alloca <vscale x 4 x float>, align 16
  %vec6 = alloca <vscale x 4 x float>, align 16
  %vec7 = alloca <vscale x 4 x float>, align 16
  %vec8 = alloca <vscale x 4 x float>, align 16
  %vec9 = alloca <vscale x 4 x float>, align 16
  %vec10 = alloca <vscale x 4 x float>, align 16
  %vec11 = alloca <vscale x 4 x float>, align 16
  %vec12 = alloca <vscale x 4 x float>, align 16
  %vec13 = alloca <vscale x 4 x float>, align 16
  %vec14 = alloca <vscale x 4 x float>, align 16
  %vec15 = alloca <vscale x 4 x float>, align 16
  %vec16 = alloca <vscale x 4 x float>, align 16
  ret void
}

; As above, but with 17 vectors of stack space.
define void @f17_vector(ptr %out) #0 {
; RV64IV-LABEL: f17_vector:
; RV64IV:       # %bb.0: # %entry
; RV64IV-NEXT:    csrr t1, vlenb
; RV64IV-NEXT:    li a0, 34
; RV64IV-NEXT:    mul t1, t1, a0
; RV64IV-NEXT:    .cfi_def_cfa t1, -272
; RV64IV-NEXT:    lui t2, 1
; RV64IV-NEXT:  .LBB3_1: # %entry
; RV64IV-NEXT:    # =>This Inner Loop Header: Depth=1
; RV64IV-NEXT:    sub sp, sp, t2
; RV64IV-NEXT:    sd zero, 0(sp)
; RV64IV-NEXT:    sub t1, t1, t2
; RV64IV-NEXT:    bge t1, t2, .LBB3_1
; RV64IV-NEXT:  # %bb.2: # %entry
; RV64IV-NEXT:    .cfi_def_cfa_register sp
; RV64IV-NEXT:    sub sp, sp, t1
; RV64IV-NEXT:    .cfi_escape 0x0f, 0x0a, 0x72, 0x00, 0x11, 0x22, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 34 * vlenb
; RV64IV-NEXT:    csrr a0, vlenb
; RV64IV-NEXT:    li a1, 34
; RV64IV-NEXT:    mul a0, a0, a1
; RV64IV-NEXT:    add sp, sp, a0
; RV64IV-NEXT:    .cfi_def_cfa sp, 0
; RV64IV-NEXT:    ret
;
; RV32IV-LABEL: f17_vector:
; RV32IV:       # %bb.0: # %entry
; RV32IV-NEXT:    csrr t1, vlenb
; RV32IV-NEXT:    li a0, 34
; RV32IV-NEXT:    mul t1, t1, a0
; RV32IV-NEXT:    .cfi_def_cfa t1, -272
; RV32IV-NEXT:    lui t2, 1
; RV32IV-NEXT:  .LBB3_1: # %entry
; RV32IV-NEXT:    # =>This Inner Loop Header: Depth=1
; RV32IV-NEXT:    sub sp, sp, t2
; RV32IV-NEXT:    sw zero, 0(sp)
; RV32IV-NEXT:    sub t1, t1, t2
; RV32IV-NEXT:    bge t1, t2, .LBB3_1
; RV32IV-NEXT:  # %bb.2: # %entry
; RV32IV-NEXT:    .cfi_def_cfa_register sp
; RV32IV-NEXT:    sub sp, sp, t1
; RV32IV-NEXT:    .cfi_escape 0x0f, 0x0a, 0x72, 0x00, 0x11, 0x22, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 34 * vlenb
; RV32IV-NEXT:    csrr a0, vlenb
; RV32IV-NEXT:    li a1, 34
; RV32IV-NEXT:    mul a0, a0, a1
; RV32IV-NEXT:    add sp, sp, a0
; RV32IV-NEXT:    .cfi_def_cfa sp, 0
; RV32IV-NEXT:    ret
entry:
  %vec1 = alloca <vscale x 4 x float>, align 16
  %vec2 = alloca <vscale x 4 x float>, align 16
  %vec3 = alloca <vscale x 4 x float>, align 16
  %vec4 = alloca <vscale x 4 x float>, align 16
  %vec5 = alloca <vscale x 4 x float>, align 16
  %vec6 = alloca <vscale x 4 x float>, align 16
  %vec7 = alloca <vscale x 4 x float>, align 16
  %vec8 = alloca <vscale x 4 x float>, align 16
  %vec9 = alloca <vscale x 4 x float>, align 16
  %vec10 = alloca <vscale x 4 x float>, align 16
  %vec11 = alloca <vscale x 4 x float>, align 16
  %vec12 = alloca <vscale x 4 x float>, align 16
  %vec13 = alloca <vscale x 4 x float>, align 16
  %vec14 = alloca <vscale x 4 x float>, align 16
  %vec15 = alloca <vscale x 4 x float>, align 16
  %vec16 = alloca <vscale x 4 x float>, align 16
  %vec17 = alloca <vscale x 4 x float>, align 16
  ret void
}

; A vector and a 16-byte fixed size object.
define void @f1_vector_16_arr(ptr %out) #0 {
; RV64IV-LABEL: f1_vector_16_arr:
; RV64IV:       # %bb.0: # %entry
; RV64IV-NEXT:    addi sp, sp, -16
; RV64IV-NEXT:    .cfi_def_cfa_offset 16
; RV64IV-NEXT:    csrr t1, vlenb
; RV64IV-NEXT:    slli t1, t1, 1
; RV64IV-NEXT:    .cfi_def_cfa t1, -16
; RV64IV-NEXT:    lui t2, 1
; RV64IV-NEXT:  .LBB4_1: # %entry
; RV64IV-NEXT:    # =>This Inner Loop Header: Depth=1
; RV64IV-NEXT:    sub sp, sp, t2
; RV64IV-NEXT:    sd zero, 0(sp)
; RV64IV-NEXT:    sub t1, t1, t2
; RV64IV-NEXT:    bge t1, t2, .LBB4_1
; RV64IV-NEXT:  # %bb.2: # %entry
; RV64IV-NEXT:    .cfi_def_cfa_register sp
; RV64IV-NEXT:    sub sp, sp, t1
; RV64IV-NEXT:    .cfi_escape 0x0f, 0x0d, 0x72, 0x00, 0x11, 0x10, 0x22, 0x11, 0x02, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 16 + 2 * vlenb
; RV64IV-NEXT:    csrr a0, vlenb
; RV64IV-NEXT:    slli a0, a0, 1
; RV64IV-NEXT:    add sp, sp, a0
; RV64IV-NEXT:    .cfi_def_cfa sp, 16
; RV64IV-NEXT:    addi sp, sp, 16
; RV64IV-NEXT:    .cfi_def_cfa_offset 0
; RV64IV-NEXT:    ret
;
; RV32IV-LABEL: f1_vector_16_arr:
; RV32IV:       # %bb.0: # %entry
; RV32IV-NEXT:    addi sp, sp, -16
; RV32IV-NEXT:    .cfi_def_cfa_offset 16
; RV32IV-NEXT:    csrr t1, vlenb
; RV32IV-NEXT:    slli t1, t1, 1
; RV32IV-NEXT:    .cfi_def_cfa t1, -16
; RV32IV-NEXT:    lui t2, 1
; RV32IV-NEXT:  .LBB4_1: # %entry
; RV32IV-NEXT:    # =>This Inner Loop Header: Depth=1
; RV32IV-NEXT:    sub sp, sp, t2
; RV32IV-NEXT:    sw zero, 0(sp)
; RV32IV-NEXT:    sub t1, t1, t2
; RV32IV-NEXT:    bge t1, t2, .LBB4_1
; RV32IV-NEXT:  # %bb.2: # %entry
; RV32IV-NEXT:    .cfi_def_cfa_register sp
; RV32IV-NEXT:    sub sp, sp, t1
; RV32IV-NEXT:    .cfi_escape 0x0f, 0x0d, 0x72, 0x00, 0x11, 0x10, 0x22, 0x11, 0x02, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 16 + 2 * vlenb
; RV32IV-NEXT:    csrr a0, vlenb
; RV32IV-NEXT:    slli a0, a0, 1
; RV32IV-NEXT:    add sp, sp, a0
; RV32IV-NEXT:    .cfi_def_cfa sp, 16
; RV32IV-NEXT:    addi sp, sp, 16
; RV32IV-NEXT:    .cfi_def_cfa_offset 0
; RV32IV-NEXT:    ret
entry:
  %vec = alloca <vscale x 4 x float>, align 16
  %arr = alloca i8, i64 16, align 1
  ret void
}

; A large vector object and a large slot, both of which need probing.
define void @f1_vector_4096_arr(ptr %out) #0 {
; RV64IV-LABEL: f1_vector_4096_arr:
; RV64IV:       # %bb.0: # %entry
; RV64IV-NEXT:    lui a0, 1
; RV64IV-NEXT:    sub sp, sp, a0
; RV64IV-NEXT:    sd zero, 0(sp)
; RV64IV-NEXT:    .cfi_def_cfa_offset 4096
; RV64IV-NEXT:    lui a0, 1
; RV64IV-NEXT:    sub sp, sp, a0
; RV64IV-NEXT:    sd zero, 0(sp)
; RV64IV-NEXT:    .cfi_def_cfa_offset 8192
; RV64IV-NEXT:    lui a0, 1
; RV64IV-NEXT:    sub sp, sp, a0
; RV64IV-NEXT:    sd zero, 0(sp)
; RV64IV-NEXT:    .cfi_def_cfa_offset 12288
; RV64IV-NEXT:    addi sp, sp, -16
; RV64IV-NEXT:    .cfi_def_cfa_offset 12304
; RV64IV-NEXT:    csrr t1, vlenb
; RV64IV-NEXT:    slli t1, t1, 7
; RV64IV-NEXT:    .cfi_def_cfa t1, -1024
; RV64IV-NEXT:    lui t2, 1
; RV64IV-NEXT:  .LBB5_1: # %entry
; RV64IV-NEXT:    # =>This Inner Loop Header: Depth=1
; RV64IV-NEXT:    sub sp, sp, t2
; RV64IV-NEXT:    sd zero, 0(sp)
; RV64IV-NEXT:    sub t1, t1, t2
; RV64IV-NEXT:    bge t1, t2, .LBB5_1
; RV64IV-NEXT:  # %bb.2: # %entry
; RV64IV-NEXT:    .cfi_def_cfa_register sp
; RV64IV-NEXT:    sub sp, sp, t1
; RV64IV-NEXT:    .cfi_escape 0x0f, 0x10, 0x72, 0x00, 0x11, 0x90, 0xe0, 0x00, 0x22, 0x11, 0x80, 0x01, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 12304 + 128 * vlenb
; RV64IV-NEXT:    csrr a0, vlenb
; RV64IV-NEXT:    slli a0, a0, 7
; RV64IV-NEXT:    add sp, sp, a0
; RV64IV-NEXT:    .cfi_def_cfa sp, 12304
; RV64IV-NEXT:    lui a0, 3
; RV64IV-NEXT:    addiw a0, a0, 16
; RV64IV-NEXT:    add sp, sp, a0
; RV64IV-NEXT:    .cfi_def_cfa_offset 0
; RV64IV-NEXT:    ret
;
; RV32IV-LABEL: f1_vector_4096_arr:
; RV32IV:       # %bb.0: # %entry
; RV32IV-NEXT:    lui a0, 1
; RV32IV-NEXT:    sub sp, sp, a0
; RV32IV-NEXT:    sw zero, 0(sp)
; RV32IV-NEXT:    .cfi_def_cfa_offset 4096
; RV32IV-NEXT:    lui a0, 1
; RV32IV-NEXT:    sub sp, sp, a0
; RV32IV-NEXT:    sw zero, 0(sp)
; RV32IV-NEXT:    .cfi_def_cfa_offset 8192
; RV32IV-NEXT:    lui a0, 1
; RV32IV-NEXT:    sub sp, sp, a0
; RV32IV-NEXT:    sw zero, 0(sp)
; RV32IV-NEXT:    .cfi_def_cfa_offset 12288
; RV32IV-NEXT:    addi sp, sp, -16
; RV32IV-NEXT:    .cfi_def_cfa_offset 12304
; RV32IV-NEXT:    csrr t1, vlenb
; RV32IV-NEXT:    slli t1, t1, 7
; RV32IV-NEXT:    .cfi_def_cfa t1, -1024
; RV32IV-NEXT:    lui t2, 1
; RV32IV-NEXT:  .LBB5_1: # %entry
; RV32IV-NEXT:    # =>This Inner Loop Header: Depth=1
; RV32IV-NEXT:    sub sp, sp, t2
; RV32IV-NEXT:    sw zero, 0(sp)
; RV32IV-NEXT:    sub t1, t1, t2
; RV32IV-NEXT:    bge t1, t2, .LBB5_1
; RV32IV-NEXT:  # %bb.2: # %entry
; RV32IV-NEXT:    .cfi_def_cfa_register sp
; RV32IV-NEXT:    sub sp, sp, t1
; RV32IV-NEXT:    .cfi_escape 0x0f, 0x10, 0x72, 0x00, 0x11, 0x90, 0xe0, 0x00, 0x22, 0x11, 0x80, 0x01, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 12304 + 128 * vlenb
; RV32IV-NEXT:    csrr a0, vlenb
; RV32IV-NEXT:    slli a0, a0, 7
; RV32IV-NEXT:    add sp, sp, a0
; RV32IV-NEXT:    .cfi_def_cfa sp, 12304
; RV32IV-NEXT:    lui a0, 3
; RV32IV-NEXT:    addi a0, a0, 16
; RV32IV-NEXT:    add sp, sp, a0
; RV32IV-NEXT:    .cfi_def_cfa_offset 0
; RV32IV-NEXT:    ret
entry:
  %vec = alloca <vscale x 256 x float>, align 16
  %arr = alloca i8, i64 12288, align 1
  ret void
}

attributes #0 = { uwtable(async) "probe-stack"="inline-asm" "frame-pointer"="none" }