1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc %s -mtriple aarch64 -run-pass=machine-outliner -o - | FileCheck %s
6 name: unsafe_range_in_middle
7 tracksRegLiveness: true
13 ; Begin safe range of 3 instructions
14 ; CHECK-LABEL: name: unsafe_range_in_middle
17 ; CHECK-NEXT: BL @OUTLINED_FUNCTION_0, implicit-def $lr, implicit $sp, implicit-def $lr, implicit-def $x0, implicit-def $x1, implicit-def $x2, implicit-def $x3, implicit-def $x16, implicit $x0, implicit $sp
18 ; CHECK-NEXT: $x9 = ADDXri $x16, 16, 0
19 ; CHECK-NEXT: $x16 = ADDXri killed $x16, 16, 0
20 ; CHECK-NEXT: BL @OUTLINED_FUNCTION_0, implicit-def $lr, implicit $sp, implicit-def $lr, implicit-def $x0, implicit-def $x1, implicit-def $x2, implicit-def $x3, implicit-def $x16, implicit $x0, implicit $sp
21 ; CHECK-NEXT: $x9 = ADDXri $x9, 16, 0
22 ; CHECK-NEXT: $x16 = ADDXri killed $x16, 16, 0
23 ; CHECK-NEXT: RET undef $x9
24 $x0 = ADDXri $x0, 0, 0
25 $x1 = ADDXri $x0, 1, 0
26 $x2 = ADDXri $x0, 2, 0
27 $x3 = ADDXri $x0, 3, 0
30 $x16 = ADDXri $x0, 16, 0
31 $x9 = ADDXri $x16, 16, 0
32 $x16 = ADDXri killed $x16, 16, 0
34 $x0 = ADDXri $x0, 0, 0
35 $x1 = ADDXri $x0, 1, 0
36 $x2 = ADDXri $x0, 2, 0
37 $x3 = ADDXri $x0, 3, 0
39 $x16 = ADDXri $x0, 16, 0
40 $x9 = ADDXri $x9, 16, 0
41 $x16 = ADDXri killed $x16, 16, 0