Skip to content

Commit 45ba5fa

Browse files
committed
fixup! test half and bfloat too
1 parent 4b92f1e commit 45ba5fa

File tree

1 file changed

+53
-9
lines changed

1 file changed

+53
-9
lines changed

llvm/test/CodeGen/RISCV/rv64-stackmap.ll

Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
; CHECK-NEXT: .quad -1
5252
; CHECK-NEXT: .quad 1
5353
; CHECK-NEXT: .quad floats
54-
; CHECK-NEXT: .quad 16
54+
; CHECK-NEXT: .quad 32
5555
; CHECK-NEXT: .quad 1
5656

5757
; Num LargeConstants
@@ -386,54 +386,98 @@ declare void @escape_values(...)
386386
; CHECK-LABEL: .word .L{{.*}}-floats
387387
; CHECK-NEXT: .half 0
388388
; Num Locations
389-
; CHECK-NEXT: .half 6
389+
; CHECK-NEXT: .half 12
390390
; Loc 0: constant float as constant integer
391391
; CHECK-NEXT: .byte 4
392392
; CHECK-NEXT: .byte 0
393393
; CHECK-NEXT: .half 8
394394
; CHECK-NEXT: .half 0
395395
; CHECK-NEXT: .half 0
396396
; CHECK-NEXT: .word
397-
; Loc 0: constant double as large constant integer
397+
; Loc 1: constant double as large constant integer
398398
; CHECK-NEXT: .byte 5
399399
; CHECK-NEXT: .byte 0
400400
; CHECK-NEXT: .half 8
401401
; CHECK-NEXT: .half 0
402402
; CHECK-NEXT: .half 0
403403
; CHECK-NEXT: .word
404-
; Loc 1: float value in X register
404+
; Loc 2: constant half as constant integer
405+
; CHECK-NEXT: .byte 4
406+
; CHECK-NEXT: .byte 0
407+
; CHECK-NEXT: .half 8
408+
; CHECK-NEXT: .half 0
409+
; CHECK-NEXT: .half 0
410+
; CHECK-NEXT: .word
411+
; Loc 3: constant bfloat as constant integer
412+
; CHECK-NEXT: .byte 4
413+
; CHECK-NEXT: .byte 0
414+
; CHECK-NEXT: .half 8
415+
; CHECK-NEXT: .half 0
416+
; CHECK-NEXT: .half 0
417+
; CHECK-NEXT: .word
418+
; Loc 4: float value in X register
405419
; CHECK-NEXT: .byte 1
406420
; CHECK-NEXT: .byte 0
407421
; CHECK-NEXT: .half 8
408422
; CHECK-NEXT: .half 10
409423
; CHECK-NEXT: .half 0
410424
; CHECK-NEXT: .word
411-
; Loc 2: double value in X register
425+
; Loc 5: double value in X register
412426
; CHECK-NEXT: .byte 1
413427
; CHECK-NEXT: .byte 0
414428
; CHECK-NEXT: .half 8
415429
; CHECK-NEXT: .half 11
416430
; CHECK-NEXT: .half 0
417431
; CHECK-NEXT: .word
418-
; Loc 3: float on stack
432+
; Loc 6: half value in X register
433+
; CHECK-NEXT: .byte 1
434+
; CHECK-NEXT: .byte 0
435+
; CHECK-NEXT: .half 8
436+
; CHECK-NEXT: .half 12
437+
; CHECK-NEXT: .half 0
438+
; CHECK-NEXT: .word
439+
; Loc 7: bfloat value in X register
440+
; CHECK-NEXT: .byte 1
441+
; CHECK-NEXT: .byte 0
442+
; CHECK-NEXT: .half 8
443+
; CHECK-NEXT: .half 13
444+
; CHECK-NEXT: .half 0
445+
; CHECK-NEXT: .word
446+
; Loc 8: float on stack
447+
; CHECK-NEXT: .byte 2
448+
; CHECK-NEXT: .byte 0
449+
; CHECK-NEXT: .half 8
450+
; CHECK-NEXT: .half 2
451+
; CHECK-NEXT: .half 0
452+
; CHECK-NEXT: .word
453+
; Loc 9: double on stack
454+
; CHECK-NEXT: .byte 2
455+
; CHECK-NEXT: .byte 0
456+
; CHECK-NEXT: .half 8
457+
; CHECK-NEXT: .half 2
458+
; CHECK-NEXT: .half 0
459+
; CHECK-NEXT: .word
460+
; Loc 10: half on stack
419461
; CHECK-NEXT: .byte 2
420462
; CHECK-NEXT: .byte 0
421463
; CHECK-NEXT: .half 8
422464
; CHECK-NEXT: .half 2
423465
; CHECK-NEXT: .half 0
424466
; CHECK-NEXT: .word
425-
; Loc 4: double on stack
467+
; Loc 11: bfloat on stack
426468
; CHECK-NEXT: .byte 2
427469
; CHECK-NEXT: .byte 0
428470
; CHECK-NEXT: .half 8
429471
; CHECK-NEXT: .half 2
430472
; CHECK-NEXT: .half 0
431473
; CHECK-NEXT: .word
432-
define void @floats(float %f, double %g) {
474+
define void @floats(float %f, double %g, half %h, bfloat %i) {
433475
%ff = alloca float
434476
%gg = alloca double
477+
%hh = alloca half
478+
%ii = alloca bfloat
435479
call void (i64, i32, ...) @llvm.experimental.stackmap(i64 888, i32 0, float 1.25,
436-
double 1.5, float %f, double %g, ptr %ff, ptr %gg)
480+
double 1.5, half 1.5, bfloat 1.5, float %f, double %g, half %h, bfloat %i, ptr %ff, ptr %gg, ptr %hh, ptr %ii)
437481
ret void
438482
}
439483

0 commit comments

Comments
 (0)