1 ; RUN: llc -enable-machine-outliner -verify-machineinstrs -mtriple=arm-- \
2 ; RUN: --stop-after=machine-outliner < %s | FileCheck %s --check-prefix=ARM
3 ; RUN: llc -enable-machine-outliner -verify-machineinstrs -mtriple=thumbv7-- \
4 ; RUN: --stop-after=machine-outliner < %s | FileCheck %s --check-prefix=THUMB
5 ; RUN: llc -enable-machine-outliner -verify-machineinstrs \
6 ; RUN: -mtriple=thumbv7-apple-darwin --stop-after=machine-outliner < %s \
7 ; RUN: | FileCheck %s --check-prefix=MACHO
8 ; RUN: llc -enable-machine-outliner -verify-machineinstrs -mtriple=thumbv5-- \
9 ; RUN: --stop-after=machine-outliner < %s | FileCheck %s --check-prefix=THUMB1
10 ; RUN: llc -verify-machineinstrs -mtriple=thumbv8m.main \
11 ; RUN: --stop-after=machine-outliner < %s | FileCheck %s --check-prefix=THUMB
13 ; ARM-LABEL: name: OUTLINED_FUNCTION_0
14 ; ARM: $r0 = MOVi 1, 14 /* CC::al */, $noreg, $noreg
15 ; ARM-NEXT: $r1 = MOVi 2, 14 /* CC::al */, $noreg, $noreg
16 ; ARM-NEXT: $r2 = MOVi 3, 14 /* CC::al */, $noreg, $noreg
17 ; ARM-NEXT: $r3 = MOVi 4, 14 /* CC::al */, $noreg, $noreg
18 ; ARM-NEXT: TAILJMPd @z
20 ; THUMB-LABEL: name: OUTLINED_FUNCTION_0
21 ; THUMB: $r0, dead $cpsr = tMOVi8 1, 14 /* CC::al */, $noreg
22 ; THUMB-NEXT: $r1, dead $cpsr = tMOVi8 2, 14 /* CC::al */, $noreg
23 ; THUMB-NEXT: $r2, dead $cpsr = tMOVi8 3, 14 /* CC::al */, $noreg
24 ; THUMB-NEXT: $r3, dead $cpsr = tMOVi8 4, 14 /* CC::al */, $noreg
25 ; THUMB-NEXT: tTAILJMPdND @z, 14 /* CC::al */, $noreg
27 ; MACHO-LABEL: name: OUTLINED_FUNCTION_0
28 ; MACHO: $r0, dead $cpsr = tMOVi8 1, 14 /* CC::al */, $noreg
29 ; MACHO-NEXT: $r1, dead $cpsr = tMOVi8 2, 14 /* CC::al */, $noreg
30 ; MACHO-NEXT: $r2, dead $cpsr = tMOVi8 3, 14 /* CC::al */, $noreg
31 ; MACHO-NEXT: $r3, dead $cpsr = tMOVi8 4, 14 /* CC::al */, $noreg
32 ; MACHO-NEXT: tTAILJMPd @z, 14 /* CC::al */, $noreg
34 ; THUMB1-NOT: OUTLINED_FUNCTION_0
38 tail call void @z(i32 1, i32 2, i32 3, i32 4)
42 declare void @z(i32, i32, i32, i32)
44 define dso_local void @b(ptr nocapture readnone %p) #0 {
46 tail call void @z(i32 1, i32 2, i32 3, i32 4)
50 attributes #0 = { minsize optsize }