1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv32 -mattr=+f,+d -verify-machineinstrs < %s \
5 define fastcc float @callee(<32 x float> %A) nounwind {
8 ; CHECK-NEXT: fmv.x.w a0, fa0
10 %B = extractelement <32 x float> %A, i32 0
14 ; With the fastcc, arguments will be passed by fa0-fa7 and ft0-ft11.
15 ; The rest will be pushed on the stack.
16 define float @caller(<32 x float> %A) nounwind {
17 ; CHECK-LABEL: caller:
19 ; CHECK-NEXT: addi sp, sp, -64
20 ; CHECK-NEXT: sw ra, 60(sp)
21 ; CHECK-NEXT: flw fa0, 0(a0)
22 ; CHECK-NEXT: flw fa1, 4(a0)
23 ; CHECK-NEXT: flw fa2, 8(a0)
24 ; CHECK-NEXT: flw fa3, 12(a0)
25 ; CHECK-NEXT: flw fa4, 16(a0)
26 ; CHECK-NEXT: flw fa5, 20(a0)
27 ; CHECK-NEXT: flw fa6, 24(a0)
28 ; CHECK-NEXT: flw fa7, 28(a0)
29 ; CHECK-NEXT: flw ft0, 32(a0)
30 ; CHECK-NEXT: flw ft1, 36(a0)
31 ; CHECK-NEXT: flw ft2, 40(a0)
32 ; CHECK-NEXT: flw ft3, 44(a0)
33 ; CHECK-NEXT: flw ft4, 48(a0)
34 ; CHECK-NEXT: flw ft5, 52(a0)
35 ; CHECK-NEXT: flw ft6, 56(a0)
36 ; CHECK-NEXT: flw ft7, 60(a0)
37 ; CHECK-NEXT: flw ft8, 64(a0)
38 ; CHECK-NEXT: flw ft9, 68(a0)
39 ; CHECK-NEXT: flw ft10, 72(a0)
40 ; CHECK-NEXT: flw ft11, 76(a0)
41 ; CHECK-NEXT: flw fs0, 80(a0)
42 ; CHECK-NEXT: flw fs1, 84(a0)
43 ; CHECK-NEXT: flw fs2, 88(a0)
44 ; CHECK-NEXT: flw fs3, 92(a0)
45 ; CHECK-NEXT: flw fs4, 96(a0)
46 ; CHECK-NEXT: flw fs5, 100(a0)
47 ; CHECK-NEXT: flw fs6, 104(a0)
48 ; CHECK-NEXT: flw fs7, 108(a0)
49 ; CHECK-NEXT: flw fs8, 112(a0)
50 ; CHECK-NEXT: flw fs9, 116(a0)
51 ; CHECK-NEXT: flw fs10, 120(a0)
52 ; CHECK-NEXT: flw fs11, 124(a0)
53 ; CHECK-NEXT: fsw fs11, 44(sp)
54 ; CHECK-NEXT: fsw fs10, 40(sp)
55 ; CHECK-NEXT: fsw fs9, 36(sp)
56 ; CHECK-NEXT: fsw fs8, 32(sp)
57 ; CHECK-NEXT: fsw fs7, 28(sp)
58 ; CHECK-NEXT: fsw fs6, 24(sp)
59 ; CHECK-NEXT: fsw fs5, 20(sp)
60 ; CHECK-NEXT: fsw fs4, 16(sp)
61 ; CHECK-NEXT: fsw fs3, 12(sp)
62 ; CHECK-NEXT: fsw fs2, 8(sp)
63 ; CHECK-NEXT: fsw fs1, 4(sp)
64 ; CHECK-NEXT: fsw fs0, 0(sp)
65 ; CHECK-NEXT: call callee
66 ; CHECK-NEXT: lw ra, 60(sp)
67 ; CHECK-NEXT: addi sp, sp, 64
69 %C = call fastcc float @callee(<32 x float> %A)