Debian Codegraph @

llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-vastart-rv32.mir

raw
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -run-pass=legalizer %s -o - | FileCheck --check-prefix=RV32 %s
3
4 ---
5 name: test_va_start
6 tracksRegLiveness: true
7 fixedStack:
8 - { id: 0, size: 4, alignment: 16, isImmutable: true }
9 stack:
10 - { id: 0, size: 4, alignment: 4 }
11 machineFunctionInfo:
12 varArgsFrameIndex: -1
13 varArgsSaveSize: 0
14 body: |
15 bb.1:
16 liveins: $x10, $x11, $x12, $x13, $x14, $x15, $x16, $x17
17
18 ; RV32-LABEL: name: test_va_start
19 ; RV32: liveins: $x10, $x11, $x12, $x13, $x14, $x15, $x16, $x17
20 ; RV32-NEXT: {{ $}}
21 ; RV32-NEXT: [[FRAME_INDEX:%[0-9]+]]:_(p0) = G_FRAME_INDEX %stack.0
22 ; RV32-NEXT: [[FRAME_INDEX1:%[0-9]+]]:_(p0) = G_FRAME_INDEX %fixed-stack.0
23 ; RV32-NEXT: G_STORE [[FRAME_INDEX1]](p0), [[FRAME_INDEX]](p0) :: (store (s32))
24 ; RV32-NEXT: PseudoRET
25 %8:_(p0) = G_FRAME_INDEX %stack.0
26 G_VASTART %8(p0) :: (store (s32))
27 PseudoRET
28
29 ...