# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=riscv64 -run-pass=legalizer %s -o - | FileCheck --check-prefix=RV64 %s
---
name: test_va_start
tracksRegLiveness: true
fixedStack:
- { id: 0, size: 8, alignment: 16, isImmutable: true }
stack:
- { id: 0, size: 8, alignment: 8 }
machineFunctionInfo:
varArgsFrameIndex: -1
varArgsSaveSize: 0
body: |
bb.1:
liveins: $x10, $x11, $x12, $x13, $x14, $x15, $x16, $x17
; RV64-LABEL: name: test_va_start
; RV64: liveins: $x10, $x11, $x12, $x13, $x14, $x15, $x16, $x17
; RV64-NEXT: {{ $}}
; RV64-NEXT: [[FRAME_INDEX:%[0-9]+]]:_(p0) = G_FRAME_INDEX %stack.0
; RV64-NEXT: [[FRAME_INDEX1:%[0-9]+]]:_(p0) = G_FRAME_INDEX %fixed-stack.0
; RV64-NEXT: G_STORE [[FRAME_INDEX1]](p0), [[FRAME_INDEX]](p0) :: (store (s64))
; RV64-NEXT: PseudoRET
%8:_(p0) = G_FRAME_INDEX %stack.0
G_VASTART %8(p0) :: (store (s64))
PseudoRET
...