1 # RUN: llc -verify-machineinstrs -run-pass=machine-outliner -mtriple=thumbv7m-none-eabi %s -o - | FileCheck %s
3 # Check the outlined function does not contain debug instructions
5 # CHECK: tBL {{.*}} @OUTLINED_FUNCTION_0,
8 # CHECK: tBL {{.*}} @OUTLINED_FUNCTION_0,
10 # CHECK-LABEL: name: OUTLINED_FUNCTION_0
11 # CHECK-NOT: DBG_VALUE
12 # CHECK: tTAILJMPdND @h
14 define void @f() { entry: ret void }
16 define void @g() { entry: ret void }
22 tracksRegLiveness: true
25 liveins: $r0, $r1, $r2, $r3, $r4, $lr
27 frame-setup tPUSH 14, $noreg, killed $r4, killed $lr, implicit-def $sp, implicit $sp
29 $r4 = tMOVr $r1, 14, $noreg
31 renamable $r0, dead $cpsr = nsw tMUL renamable $r1, killed renamable $r0, 14, $noreg
32 renamable $r0, dead $cpsr = nsw tSUBrr killed renamable $r0, renamable $r1, 14, $noreg
33 tBL 14, $noreg, @h, csr_aapcs, implicit-def dead $lr, implicit $sp, implicit killed $r0, implicit killed $r1, implicit-def $sp, implicit-def $r0
35 frame-destroy tPOP_RET 14, $noreg, def $r4, def $pc, implicit killed $r0
39 tracksRegLiveness: true
42 liveins: $r0, $r1, $r2, $r3, $r4, $lr
44 frame-setup tPUSH 14, $noreg, killed $r4, killed $lr, implicit-def $sp, implicit $sp
46 $r4 = tMOVr $r1, 14, $noreg
48 renamable $r0, dead $cpsr = nsw tMUL renamable $r1, killed renamable $r0, 14, $noreg
49 renamable $r0, dead $cpsr = nsw tSUBrr killed renamable $r0, renamable $r1, 14, $noreg
50 tBL 14, $noreg, @h, csr_aapcs, implicit-def dead $lr, implicit $sp, implicit killed $r0, implicit killed $r1, implicit-def $sp, implicit-def $r0
52 frame-destroy tPOP_RET 14, $noreg, def $r4, def $pc, implicit killed $r0