1 # RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass none -o - %s | FileCheck %s
2 # This test ensures that the MIR parser can parse multiple register machine
5 # This tests that a MIR file with no vregs does not get altered by mir-canon.
6 # RUN: llc -mtriple=aarch64 -o - -run-pass mir-canonicalizer -verify-machineinstrs %s
12 define void @trivial_fp_func() {
23 liveins: $lr, $fp, $lr, $fp
25 $sp = frame-setup STPXpre killed $fp, killed $lr, $sp, -2
26 $fp = frame-setup ADDXri $sp, 0, 0
27 BL @foo, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp
28 ; CHECK: $sp, $fp, $lr = LDPXpost $sp, 2
29 $sp, $fp, $lr = LDPXpost $sp, 2