1 # RUN: llc -mtriple=aarch64 -run-pass=machine-outliner -verify-machineinstrs %s -o - | FileCheck %s
3 # The test checks whether the compiler updates the side effect of function @OUTLINED_FUNCTION_0 by adding the use of register x0.
6 declare void @spam() local_unnamed_addr
7 define void @bax() optsize minsize noredzone { ret void }
8 define void @bay() optsize minsize noredzone { ret void }
9 define void @baz() optsize minsize noredzone { ret void }
13 tracksRegLiveness: true
18 $x1 = ADDXri $sp, 16, 0
19 BL @spam, csr_darwin_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit $x0, implicit killed $x1, implicit-def $sp, implicit-def dead $x0
26 tracksRegLiveness: true
31 $x1 = ADDXri $sp, 16, 0
32 BL @spam, csr_darwin_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit $x0, implicit killed $x1, implicit-def $sp, implicit-def dead $x0
39 tracksRegLiveness: true
44 $x1 = ADDXri $sp, 16, 0
45 BL @spam, csr_darwin_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit $x0, implicit killed $x1, implicit-def $sp, implicit-def dead $x0
51 # CHECK: BL @OUTLINED_FUNCTION_0, {{.*}}, implicit $x0