1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -o - %s -mtriple=thumbv8.1m.main-arm-none-eabi -mattr=+mve.fp -run-pass=stack-protector -run-pass=prologepilog | FileCheck %s
5 tracksRegLiveness: true
7 - { id: 0, name: '', type: default, offset: 0, size: 16, alignment: 4,
8 stack-id: default, callee-saved-register: '', callee-saved-restored: true,
9 local-offset: -16, debug-info-variable: '', debug-info-expression: '',
10 debug-info-location: '' }
13 ; CHECK-LABEL: name: func0
14 ; CHECK: liveins: $r4, $r5, $r6, $r7, $r8, $r9, $r10, $r11, $lr
15 ; CHECK: $sp = frame-setup t2STMDB_UPD $sp, 14, $noreg, killed $r4, killed $r5, killed $r6, killed $r7, killed $r8, killed $r9, killed $r10, killed $r11, killed $lr
16 ; CHECK: frame-setup CFI_INSTRUCTION def_cfa_offset 36
17 ; CHECK: frame-setup CFI_INSTRUCTION offset $lr, -4
18 ; CHECK: frame-setup CFI_INSTRUCTION offset $r11, -8
19 ; CHECK: frame-setup CFI_INSTRUCTION offset $r10, -12
20 ; CHECK: frame-setup CFI_INSTRUCTION offset $r9, -16
21 ; CHECK: frame-setup CFI_INSTRUCTION offset $r8, -20
22 ; CHECK: frame-setup CFI_INSTRUCTION offset $r7, -24
23 ; CHECK: frame-setup CFI_INSTRUCTION offset $r6, -28
24 ; CHECK: frame-setup CFI_INSTRUCTION offset $r5, -32
25 ; CHECK: frame-setup CFI_INSTRUCTION offset $r4, -36
26 ; CHECK: $sp = frame-setup tSUBspi $sp, 5, 14, $noreg
27 ; CHECK: frame-setup CFI_INSTRUCTION def_cfa_offset 56
28 ; CHECK: $r0 = IMPLICIT_DEF
29 ; CHECK: $r1 = IMPLICIT_DEF
30 ; CHECK: $r2 = IMPLICIT_DEF
31 ; CHECK: $r3 = IMPLICIT_DEF
32 ; CHECK: $r4 = IMPLICIT_DEF
33 ; CHECK: $r5 = IMPLICIT_DEF
34 ; CHECK: $r6 = IMPLICIT_DEF
35 ; CHECK: $r7 = IMPLICIT_DEF
36 ; CHECK: $r8 = IMPLICIT_DEF
37 ; CHECK: $r9 = IMPLICIT_DEF
38 ; CHECK: $r10 = IMPLICIT_DEF
39 ; CHECK: $r11 = IMPLICIT_DEF
40 ; CHECK: $r12 = IMPLICIT_DEF
41 ; CHECK: $lr = IMPLICIT_DEF
42 ; CHECK: t2STRi12 killed $r0, $sp, 0, 14, $noreg :: (store 4 into %stack.1)
43 ; CHECK: $r0 = tMOVr killed $sp, 14, $noreg
44 ; CHECK: renamable $q2 = MVE_VLDRBU32 killed $r0, 16, 0, $noreg :: (load 4 from %stack.0 + 12)
45 ; CHECK: $r0 = t2LDRi12 $sp, 0, 14, $noreg :: (load 4 from %stack.1)
75 renamable $q2 = MVE_VLDRBU32 %stack.0, 12, 0, $noreg :: (load 4 from %stack.0 + 12)
94 tracksRegLiveness: true
96 - { id: 0, name: '', type: default, offset: 0, size: 16, alignment: 4,
97 stack-id: default, callee-saved-register: '', callee-saved-restored: true,
98 local-offset: -1200, debug-info-variable: '', debug-info-expression: '',
99 debug-info-location: '' }
100 - { id: 1, name: '', type: default, offset: 0, size: 1200, alignment: 4,
101 stack-id: default, callee-saved-register: '', callee-saved-restored: true,
102 local-offset: -1200, debug-info-variable: '', debug-info-expression: '',
103 debug-info-location: '' }
106 ; CHECK-LABEL: name: func1
107 ; CHECK: liveins: $r4, $r5, $r6, $r7, $r8, $r9, $r10, $r11, $lr
108 ; CHECK: $sp = frame-setup t2STMDB_UPD $sp, 14, $noreg, killed $r4, killed $r5, killed $r6, killed $r7, killed $r8, killed $r9, killed $r10, killed $r11, killed $lr
109 ; CHECK: frame-setup CFI_INSTRUCTION def_cfa_offset 36
110 ; CHECK: frame-setup CFI_INSTRUCTION offset $lr, -4
111 ; CHECK: frame-setup CFI_INSTRUCTION offset $r11, -8
112 ; CHECK: frame-setup CFI_INSTRUCTION offset $r10, -12
113 ; CHECK: frame-setup CFI_INSTRUCTION offset $r9, -16
114 ; CHECK: frame-setup CFI_INSTRUCTION offset $r8, -20
115 ; CHECK: frame-setup CFI_INSTRUCTION offset $r7, -24
116 ; CHECK: frame-setup CFI_INSTRUCTION offset $r6, -28
117 ; CHECK: frame-setup CFI_INSTRUCTION offset $r5, -32
118 ; CHECK: frame-setup CFI_INSTRUCTION offset $r4, -36
119 ; CHECK: $sp = frame-setup t2SUBri killed $sp, 1216, 14, $noreg, $noreg
120 ; CHECK: $sp = frame-setup tSUBspi $sp, 1, 14, $noreg
121 ; CHECK: frame-setup CFI_INSTRUCTION def_cfa_offset 1256
122 ; CHECK: $r0 = IMPLICIT_DEF
123 ; CHECK: $r1 = IMPLICIT_DEF
124 ; CHECK: $r2 = IMPLICIT_DEF
125 ; CHECK: $r3 = IMPLICIT_DEF
126 ; CHECK: $r4 = IMPLICIT_DEF
127 ; CHECK: $r5 = IMPLICIT_DEF
128 ; CHECK: $r6 = IMPLICIT_DEF
129 ; CHECK: $r7 = IMPLICIT_DEF
130 ; CHECK: $r8 = IMPLICIT_DEF
131 ; CHECK: $r9 = IMPLICIT_DEF
132 ; CHECK: $r10 = IMPLICIT_DEF
133 ; CHECK: $r11 = IMPLICIT_DEF
134 ; CHECK: $r12 = IMPLICIT_DEF
135 ; CHECK: $lr = IMPLICIT_DEF
136 ; CHECK: t2STRi12 killed $r0, $sp, 0, 14, $noreg :: (store 4 into %stack.2)
137 ; CHECK: $r0 = t2ADDri killed $sp, 1152, 14, $noreg, $noreg
138 ; CHECK: renamable $q2 = MVE_VLDRBU8 killed $r0, 52, 0, $noreg :: (load 4 from %stack.0)
139 ; CHECK: $r0 = t2LDRi12 $sp, 0, 14, $noreg :: (load 4 from %stack.2)
169 renamable $q2 = MVE_VLDRBU8 %stack.0, 0, 0, $noreg :: (load 4 from %stack.0)