Lines Matching refs:RV32

2 ; RUN: llc -mtriple=riscv32 < %s | FileCheck -check-prefix=RV32 %s
5 ; RUN: | FileCheck -check-prefix=RV32-WITHFP %s
10 ; RV32-LABEL: trivial:
11 ; RV32: # %bb.0:
12 ; RV32-NEXT: ret
18 ; RV32-WITHFP-LABEL: trivial:
19 ; RV32-WITHFP: # %bb.0:
20 ; RV32-WITHFP-NEXT: addi sp, sp, -16
21 ; RV32-WITHFP-NEXT: .cfi_def_cfa_offset 16
22 ; RV32-WITHFP-NEXT: sw ra, 12(sp)
23 ; RV32-WITHFP-NEXT: sw s0, 8(sp)
24 ; RV32-WITHFP-NEXT: .cfi_offset ra, -4
25 ; RV32-WITHFP-NEXT: .cfi_offset s0, -8
26 ; RV32-WITHFP-NEXT: addi s0, sp, 16
27 ; RV32-WITHFP-NEXT: .cfi_def_cfa s0, 0
28 ; RV32-WITHFP-NEXT: lw s0, 8(sp)
29 ; RV32-WITHFP-NEXT: lw ra, 12(sp)
30 ; RV32-WITHFP-NEXT: addi sp, sp, 16
31 ; RV32-WITHFP-NEXT: ret
51 ; RV32-LABEL: stack_alloc:
52 ; RV32: # %bb.0: # %entry
53 ; RV32-NEXT: addi sp, sp, -16
54 ; RV32-NEXT: .cfi_def_cfa_offset 16
55 ; RV32-NEXT: sw ra, 12(sp)
56 ; RV32-NEXT: sw s0, 8(sp)
57 ; RV32-NEXT: .cfi_offset ra, -4
58 ; RV32-NEXT: .cfi_offset s0, -8
59 ; RV32-NEXT: addi s0, sp, 16
60 ; RV32-NEXT: .cfi_def_cfa s0, 0
61 ; RV32-NEXT: addi a0, a0, 15
62 ; RV32-NEXT: andi a0, a0, -16
63 ; RV32-NEXT: sub a0, sp, a0
64 ; RV32-NEXT: mv sp, a0
65 ; RV32-NEXT: call callee_with_args
66 ; RV32-NEXT: addi sp, s0, -16
67 ; RV32-NEXT: lw s0, 8(sp)
68 ; RV32-NEXT: lw ra, 12(sp)
69 ; RV32-NEXT: addi sp, sp, 16
70 ; RV32-NEXT: ret
98 ; RV32-WITHFP-LABEL: stack_alloc:
99 ; RV32-WITHFP: # %bb.0: # %entry
100 ; RV32-WITHFP-NEXT: addi sp, sp, -16
101 ; RV32-WITHFP-NEXT: .cfi_def_cfa_offset 16
102 ; RV32-WITHFP-NEXT: sw ra, 12(sp)
103 ; RV32-WITHFP-NEXT: sw s0, 8(sp)
104 ; RV32-WITHFP-NEXT: .cfi_offset ra, -4
105 ; RV32-WITHFP-NEXT: .cfi_offset s0, -8
106 ; RV32-WITHFP-NEXT: addi s0, sp, 16
107 ; RV32-WITHFP-NEXT: .cfi_def_cfa s0, 0
108 ; RV32-WITHFP-NEXT: addi a0, a0, 15
109 ; RV32-WITHFP-NEXT: andi a0, a0, -16
110 ; RV32-WITHFP-NEXT: sub a0, sp, a0
111 ; RV32-WITHFP-NEXT: mv sp, a0
112 ; RV32-WITHFP-NEXT: call callee_with_args
113 ; RV32-WITHFP-NEXT: addi sp, s0, -16
114 ; RV32-WITHFP-NEXT: lw s0, 8(sp)
115 ; RV32-WITHFP-NEXT: lw ra, 12(sp)
116 ; RV32-WITHFP-NEXT: addi sp, sp, 16
117 ; RV32-WITHFP-NEXT: ret
151 ; RV32-LABEL: branch_and_tail_call:
152 ; RV32: # %bb.0:
153 ; RV32-NEXT: addi sp, sp, -16
154 ; RV32-NEXT: .cfi_def_cfa_offset 16
155 ; RV32-NEXT: sw ra, 12(sp)
156 ; RV32-NEXT: .cfi_offset ra, -4
157 ; RV32-NEXT: andi a0, a0, 1
158 ; RV32-NEXT: beqz a0, .LBB2_2
159 ; RV32-NEXT: # %bb.1: # %blue_pill
160 ; RV32-NEXT: lw ra, 12(sp)
161 ; RV32-NEXT: addi sp, sp, 16
162 ; RV32-NEXT: tail callee1
163 ; RV32-NEXT: .LBB2_2: # %red_pill
164 ; RV32-NEXT: call callee2
165 ; RV32-NEXT: lw ra, 12(sp)
166 ; RV32-NEXT: addi sp, sp, 16
167 ; RV32-NEXT: ret
187 ; RV32-WITHFP-LABEL: branch_and_tail_call:
188 ; RV32-WITHFP: # %bb.0:
189 ; RV32-WITHFP-NEXT: addi sp, sp, -16
190 ; RV32-WITHFP-NEXT: .cfi_def_cfa_offset 16
191 ; RV32-WITHFP-NEXT: sw ra, 12(sp)
192 ; RV32-WITHFP-NEXT: sw s0, 8(sp)
193 ; RV32-WITHFP-NEXT: .cfi_offset ra, -4
194 ; RV32-WITHFP-NEXT: .cfi_offset s0, -8
195 ; RV32-WITHFP-NEXT: addi s0, sp, 16
196 ; RV32-WITHFP-NEXT: .cfi_def_cfa s0, 0
197 ; RV32-WITHFP-NEXT: andi a0, a0, 1
198 ; RV32-WITHFP-NEXT: beqz a0, .LBB2_2
199 ; RV32-WITHFP-NEXT: # %bb.1: # %blue_pill
200 ; RV32-WITHFP-NEXT: lw s0, 8(sp)
201 ; RV32-WITHFP-NEXT: lw ra, 12(sp)
202 ; RV32-WITHFP-NEXT: addi sp, sp, 16
203 ; RV32-WITHFP-NEXT: tail callee1
204 ; RV32-WITHFP-NEXT: .LBB2_2: # %red_pill
205 ; RV32-WITHFP-NEXT: call callee2
206 ; RV32-WITHFP-NEXT: lw s0, 8(sp)
207 ; RV32-WITHFP-NEXT: lw ra, 12(sp)
208 ; RV32-WITHFP-NEXT: addi sp, sp, 16
209 ; RV32-WITHFP-NEXT: ret