1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -mtriple=thumbv8.1m.main -mattr=+mve.fp -run-pass=arm-low-overhead-loops %s -o - | FileCheck %s
3
4--- |
5  define dso_local arm_aapcs_vfpcc float @insert_after_vdup_1(float* nocapture readonly %a, float* nocapture readonly %b, float %init, i32 %N) {
6  entry:
7    %cmp8.not = icmp eq i32 %N, 0
8    %0 = add i32 %N, 3
9    %1 = lshr i32 %0, 2
10    %2 = shl nuw i32 %1, 2
11    %3 = add i32 %2, -4
12    %4 = lshr i32 %3, 2
13    %5 = add nuw nsw i32 %4, 1
14    br i1 %cmp8.not, label %for.cond.cleanup, label %vector.ph
15
16  vector.ph:                                        ; preds = %entry
17    %6 = insertelement <4 x float> <float undef, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00>, float %init, i32 0
18    %start = call i32 @llvm.start.loop.iterations.i32(i32 %5)
19    br label %vector.body
20
21  vector.body:                                      ; preds = %vector.body, %vector.ph
22    %lsr.iv13 = phi float* [ %scevgep14, %vector.body ], [ %b, %vector.ph ]
23    %lsr.iv = phi float* [ %scevgep, %vector.body ], [ %a, %vector.ph ]
24    %vec.phi = phi <4 x float> [ %6, %vector.ph ], [ %13, %vector.body ]
25    %7 = phi i32 [ %start, %vector.ph ], [ %14, %vector.body ]
26    %8 = phi i32 [ %N, %vector.ph ], [ %10, %vector.body ]
27    %lsr.iv12 = bitcast float* %lsr.iv to <4 x float>*
28    %lsr.iv1315 = bitcast float* %lsr.iv13 to <4 x float>*
29    %9 = call <4 x i1> @llvm.arm.mve.vctp32(i32 %8)
30    %10 = sub i32 %8, 4
31    %wide.masked.load = call <4 x float> @llvm.masked.load.v4f32.p0v4f32(<4 x float>* %lsr.iv12, i32 4, <4 x i1> %9, <4 x float> undef)
32    %wide.masked.load11 = call <4 x float> @llvm.masked.load.v4f32.p0v4f32(<4 x float>* %lsr.iv1315, i32 4, <4 x i1> %9, <4 x float> undef)
33    %11 = fmul fast <4 x float> %wide.masked.load11, %wide.masked.load
34    %12 = fadd fast <4 x float> %11, %vec.phi
35    %13 = select <4 x i1> %9, <4 x float> %12, <4 x float> %vec.phi
36    %scevgep = getelementptr float, float* %lsr.iv, i32 4
37    %scevgep14 = getelementptr float, float* %lsr.iv13, i32 4
38    %14 = call i32 @llvm.loop.decrement.reg.i32(i32 %7, i32 1)
39    %15 = icmp ne i32 %14, 0
40    br i1 %15, label %vector.body, label %middle.block
41
42  middle.block:                                     ; preds = %vector.body
43    %16 = call fast float @llvm.vector.reduce.fadd.f32.v4f32(float 0.000000e+00, <4 x float> %13)
44    br label %for.cond.cleanup
45
46  for.cond.cleanup:                                 ; preds = %middle.block, %entry
47    %res.0.lcssa = phi float [ %init, %entry ], [ %16, %middle.block ]
48    ret float %res.0.lcssa
49  }
50
51  ; Function Attrs: norecurse nounwind readonly
52  define dso_local arm_aapcs_vfpcc float @insert_after_vdup_2(float* nocapture readonly %a, float* nocapture readonly %b, float %init, i32 %N) local_unnamed_addr #0 {
53  entry:
54    %shr = lshr i32 %N, 2
55    %cmp9.not = icmp eq i32 %shr, 0
56    %0 = add nuw nsw i32 %shr, 3
57    %1 = lshr i32 %0, 2
58    %2 = shl nuw nsw i32 %1, 2
59    %3 = add nsw i32 %2, -4
60    %4 = lshr i32 %3, 2
61    %5 = add nuw nsw i32 %4, 1
62    br i1 %cmp9.not, label %for.cond.cleanup, label %vector.ph
63
64  vector.ph:                                        ; preds = %entry
65    %6 = insertelement <4 x float> <float undef, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00>, float %init, i32 0
66    %start = call i32 @llvm.start.loop.iterations.i32(i32 %5)
67    br label %vector.body
68
69  vector.body:                                      ; preds = %vector.body, %vector.ph
70    %lsr.iv14 = phi float* [ %scevgep15, %vector.body ], [ %b, %vector.ph ]
71    %lsr.iv = phi float* [ %scevgep, %vector.body ], [ %a, %vector.ph ]
72    %vec.phi = phi <4 x float> [ %6, %vector.ph ], [ %13, %vector.body ]
73    %7 = phi i32 [ %start, %vector.ph ], [ %14, %vector.body ]
74    %8 = phi i32 [ %shr, %vector.ph ], [ %10, %vector.body ]
75    %lsr.iv13 = bitcast float* %lsr.iv to <4 x float>*
76    %lsr.iv1416 = bitcast float* %lsr.iv14 to <4 x float>*
77    %9 = call <4 x i1> @llvm.arm.mve.vctp32(i32 %8)
78    %10 = sub i32 %8, 4
79    %wide.masked.load = call <4 x float> @llvm.masked.load.v4f32.p0v4f32(<4 x float>* %lsr.iv13, i32 4, <4 x i1> %9, <4 x float> undef)
80    %wide.masked.load12 = call <4 x float> @llvm.masked.load.v4f32.p0v4f32(<4 x float>* %lsr.iv1416, i32 4, <4 x i1> %9, <4 x float> undef)
81    %11 = fmul fast <4 x float> %wide.masked.load12, %wide.masked.load
82    %12 = fadd fast <4 x float> %11, %vec.phi
83    %13 = select <4 x i1> %9, <4 x float> %12, <4 x float> %vec.phi
84    %scevgep = getelementptr float, float* %lsr.iv, i32 4
85    %scevgep15 = getelementptr float, float* %lsr.iv14, i32 4
86    %14 = call i32 @llvm.loop.decrement.reg.i32(i32 %7, i32 1)
87    %15 = icmp ne i32 %14, 0
88    br i1 %15, label %vector.body, label %middle.block
89
90  middle.block:                                     ; preds = %vector.body
91    %16 = call fast float @llvm.vector.reduce.fadd.f32.v4f32(float 0.000000e+00, <4 x float> %13)
92    br label %for.cond.cleanup
93
94  for.cond.cleanup:                                 ; preds = %middle.block, %entry
95    %res.0.lcssa = phi float [ %init, %entry ], [ %16, %middle.block ]
96    ret float %res.0.lcssa
97  }
98
99  declare <4 x i1> @llvm.get.active.lane.mask.v4i1.i32(i32, i32)
100  declare <4 x float> @llvm.masked.load.v4f32.p0v4f32(<4 x float>*, i32 immarg, <4 x i1>, <4 x float>)
101  declare float @llvm.vector.reduce.fadd.f32.v4f32(float, <4 x float>)
102  declare i32 @llvm.start.loop.iterations.i32(i32)
103  declare i32 @llvm.loop.decrement.reg.i32(i32, i32)
104  declare <4 x i1> @llvm.arm.mve.vctp32(i32)
105
106...
107---
108name:            insert_after_vdup_1
109alignment:       4
110tracksRegLiveness: true
111registers:       []
112liveins:
113  - { reg: '$r0', virtual-reg: '' }
114  - { reg: '$r1', virtual-reg: '' }
115  - { reg: '$s0', virtual-reg: '' }
116  - { reg: '$r2', virtual-reg: '' }
117frameInfo:
118  stackSize:       8
119  offsetAdjustment: 0
120  maxAlignment:    4
121  localFrameSize:  0
122  savePoint:       ''
123  restorePoint:    ''
124fixedStack:      []
125stack:
126  - { id: 0, name: '', type: spill-slot, offset: -4, size: 4, alignment: 4,
127      stack-id: default, callee-saved-register: '$lr', callee-saved-restored: true,
128      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
129  - { id: 1, name: '', type: spill-slot, offset: -8, size: 4, alignment: 4,
130      stack-id: default, callee-saved-register: '$r7', callee-saved-restored: true,
131      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
132callSites:       []
133constants:
134  - id:              0
135    value:           'float 0.000000e+00'
136    alignment:       4
137    isTargetSpecific: false
138machineFunctionInfo: {}
139body:             |
140  ; CHECK-LABEL: name: insert_after_vdup_1
141  ; CHECK: bb.0.entry:
142  ; CHECK:   successors: %bb.1(0x80000000)
143  ; CHECK:   liveins: $lr, $r0, $r1, $r2, $r7, $s0
144  ; CHECK:   tCMPi8 renamable $r2, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
145  ; CHECK:   t2IT 0, 8, implicit-def $itstate
146  ; CHECK:   tBX_RET 0 /* CC::eq */, killed $cpsr, implicit $s0, implicit killed $itstate
147  ; CHECK: bb.1.vector.ph:
148  ; CHECK:   successors: %bb.2(0x80000000)
149  ; CHECK:   liveins: $lr, $r0, $r1, $r2, $s0
150  ; CHECK:   frame-setup tPUSH 14 /* CC::al */, $noreg, killed $lr, implicit-def $sp, implicit $sp
151  ; CHECK:   frame-setup CFI_INSTRUCTION def_cfa_offset 8
152  ; CHECK:   frame-setup CFI_INSTRUCTION offset $lr, -4
153  ; CHECK:   frame-setup CFI_INSTRUCTION offset $r7, -8
154  ; CHECK:   dead $r7 = frame-setup tMOVr $sp, 14 /* CC::al */, $noreg
155  ; CHECK:   frame-setup CFI_INSTRUCTION def_cfa_register $r7
156  ; CHECK:   renamable $r3, dead $cpsr = tADDi3 renamable $r2, 3, 14 /* CC::al */, $noreg
157  ; CHECK:   renamable $r3 = t2BICri killed renamable $r3, 3, 14 /* CC::al */, $noreg, $noreg
158  ; CHECK:   renamable $r12 = t2SUBri killed renamable $r3, 4, 14 /* CC::al */, $noreg, $noreg
159  ; CHECK:   renamable $r3, dead $cpsr = tMOVi8 1, 14 /* CC::al */, $noreg
160  ; CHECK:   renamable $lr = nuw nsw t2ADDrs killed renamable $r3, killed renamable $r12, 19, 14 /* CC::al */, $noreg, $noreg
161  ; CHECK:   renamable $r3 = tLDRpci %const.0, 14 /* CC::al */, $noreg :: (load 4 from constant-pool)
162  ; CHECK:   $lr = t2DLS killed renamable $lr
163  ; CHECK:   renamable $q1 = MVE_VDUP32 killed renamable $r3, 0, $noreg, undef renamable $q1
164  ; CHECK:   $s4 = VMOVS killed $s0, 14 /* CC::al */, $noreg, implicit killed $q1, implicit-def $q1
165  ; CHECK: bb.2.vector.body:
166  ; CHECK:   successors: %bb.2(0x7c000000), %bb.3(0x04000000)
167  ; CHECK:   liveins: $lr, $q1, $r0, $r1, $r2
168  ; CHECK:   renamable $vpr = MVE_VCTP32 renamable $r2, 0, $noreg
169  ; CHECK:   renamable $r2, dead $cpsr = tSUBi8 killed renamable $r2, 4, 14 /* CC::al */, $noreg
170  ; CHECK:   MVE_VPST 2, implicit $vpr
171  ; CHECK:   renamable $r0, renamable $q0 = MVE_VLDRWU32_post killed renamable $r0, 16, 1, renamable $vpr :: (load 16 from %ir.lsr.iv12, align 4)
172  ; CHECK:   renamable $r1, renamable $q2 = MVE_VLDRWU32_post killed renamable $r1, 16, 1, renamable $vpr :: (load 16 from %ir.lsr.iv1315, align 4)
173  ; CHECK:   renamable $q1 = MVE_VFMAf32 killed renamable $q1, killed renamable $q2, killed renamable $q0, 1, killed renamable $vpr
174  ; CHECK:   $lr = t2LEUpdate killed renamable $lr, %bb.2
175  ; CHECK: bb.3.middle.block:
176  ; CHECK:   liveins: $q1
177  ; CHECK:   renamable $s0 = nnan ninf nsz arcp contract afn reassoc VADDS renamable $s6, renamable $s7, 14 /* CC::al */, $noreg
178  ; CHECK:   renamable $s2 = nnan ninf nsz arcp contract afn reassoc VADDS killed renamable $s4, killed renamable $s5, 14 /* CC::al */, $noreg, implicit killed $q1
179  ; CHECK:   renamable $s0 = nnan ninf nsz arcp contract afn reassoc VADDS killed renamable $s2, killed renamable $s0, 14 /* CC::al */, $noreg
180  ; CHECK:   $sp = frame-destroy t2LDMIA_UPD $sp, 14 /* CC::al */, $noreg, def $r7, def $lr
181  ; CHECK:   tBX_RET 14 /* CC::al */, $noreg, implicit killed $s0
182  ; CHECK: bb.4 (align 4):
183  ; CHECK:   CONSTPOOL_ENTRY 0, %const.0, 4
184  bb.0.entry:
185    successors: %bb.1(0x80000000)
186    liveins: $r0, $r1, $r2, $s0, $lr
187
188    tCMPi8 renamable $r2, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
189    t2IT 0, 8, implicit-def $itstate
190    tBX_RET 0 /* CC::eq */, killed $cpsr, implicit $s0, implicit killed $itstate
191
192  bb.1.vector.ph:
193    successors: %bb.2(0x80000000)
194    liveins: $r0, $r1, $r2, $s0, $lr
195
196    frame-setup tPUSH 14 /* CC::al */, $noreg, killed $lr, implicit-def $sp, implicit $sp
197    frame-setup CFI_INSTRUCTION def_cfa_offset 8
198    frame-setup CFI_INSTRUCTION offset $lr, -4
199    frame-setup CFI_INSTRUCTION offset $r7, -8
200    $r7 = frame-setup tMOVr $sp, 14 /* CC::al */, $noreg
201    frame-setup CFI_INSTRUCTION def_cfa_register $r7
202    renamable $r3, dead $cpsr = tADDi3 renamable $r2, 3, 14 /* CC::al */, $noreg
203    renamable $r3 = t2BICri killed renamable $r3, 3, 14 /* CC::al */, $noreg, $noreg
204    renamable $r12 = t2SUBri killed renamable $r3, 4, 14 /* CC::al */, $noreg, $noreg
205    renamable $r3, dead $cpsr = tMOVi8 1, 14 /* CC::al */, $noreg
206    renamable $lr = nuw nsw t2ADDrs killed renamable $r3, killed renamable $r12, 19, 14 /* CC::al */, $noreg, $noreg
207    renamable $r3 = tLDRpci %const.0, 14 /* CC::al */, $noreg :: (load 4 from constant-pool)
208    $lr = t2DoLoopStart renamable $lr
209    renamable $q1 = MVE_VDUP32 killed renamable $r3, 0, $noreg, undef renamable $q1
210    $s4 = VMOVS killed $s0, 14 /* CC::al */, $noreg, implicit killed $q1, implicit-def $q1
211
212  bb.2.vector.body:
213    successors: %bb.2(0x7c000000), %bb.3(0x04000000)
214    liveins: $lr, $q1, $r0, $r1, $r2
215
216    renamable $vpr = MVE_VCTP32 renamable $r2, 0, $noreg
217    renamable $r2, dead $cpsr = tSUBi8 killed renamable $r2, 4, 14 /* CC::al */, $noreg
218    renamable $lr = t2LoopDec killed renamable $lr, 1
219    MVE_VPST 2, implicit $vpr
220    renamable $r0, renamable $q0 = MVE_VLDRWU32_post killed renamable $r0, 16, 1, renamable $vpr :: (load 16 from %ir.lsr.iv12, align 4)
221    renamable $r1, renamable $q2 = MVE_VLDRWU32_post killed renamable $r1, 16, 1, renamable $vpr :: (load 16 from %ir.lsr.iv1315, align 4)
222    renamable $q1 = MVE_VFMAf32 killed renamable $q1, killed renamable $q2, killed renamable $q0, 1, killed renamable $vpr
223    t2LoopEnd renamable $lr, %bb.2, implicit-def dead $cpsr
224    tB %bb.3, 14 /* CC::al */, $noreg
225
226  bb.3.middle.block:
227    liveins: $q1
228
229    renamable $s0 = nnan ninf nsz arcp contract afn reassoc VADDS renamable $s6, renamable $s7, 14 /* CC::al */, $noreg
230    renamable $s2 = nnan ninf nsz arcp contract afn reassoc VADDS killed renamable $s4, killed renamable $s5, 14 /* CC::al */, $noreg, implicit $q1
231    renamable $s0 = nnan ninf nsz arcp contract afn reassoc VADDS killed renamable $s2, killed renamable $s0, 14 /* CC::al */, $noreg
232    $sp = frame-destroy t2LDMIA_UPD $sp, 14 /* CC::al */, $noreg, def $r7, def $lr
233    tBX_RET 14 /* CC::al */, $noreg, implicit killed $s0
234
235  bb.4 (align 4):
236    CONSTPOOL_ENTRY 0, %const.0, 4
237
238...
239---
240name:            insert_after_vdup_2
241alignment:       4
242tracksRegLiveness: true
243registers:       []
244liveins:
245  - { reg: '$r0', virtual-reg: '' }
246  - { reg: '$r1', virtual-reg: '' }
247  - { reg: '$s0', virtual-reg: '' }
248  - { reg: '$r2', virtual-reg: '' }
249frameInfo:
250  stackSize:       8
251  offsetAdjustment: 0
252  maxAlignment:    4
253  savePoint:       ''
254  restorePoint:    ''
255fixedStack:      []
256stack:
257  - { id: 0, name: '', type: spill-slot, offset: -4, size: 4, alignment: 4,
258      stack-id: default, callee-saved-register: '$lr', callee-saved-restored: true,
259      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
260  - { id: 1, name: '', type: spill-slot, offset: -8, size: 4, alignment: 4,
261      stack-id: default, callee-saved-register: '$r7', callee-saved-restored: true,
262      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
263callSites:       []
264constants:
265  - id:              0
266    value:           'float 0.000000e+00'
267    alignment:       4
268    isTargetSpecific: false
269machineFunctionInfo: {}
270body:             |
271  ; CHECK-LABEL: name: insert_after_vdup_2
272  ; CHECK: bb.0.entry:
273  ; CHECK:   successors: %bb.1(0x80000000)
274  ; CHECK:   liveins: $lr, $r0, $r1, $r2, $r7, $s0
275  ; CHECK:   renamable $r3, dead $cpsr = tMOVi8 0, 14 /* CC::al */, $noreg
276  ; CHECK:   t2CMPrs killed renamable $r3, renamable $r2, 19, 14 /* CC::al */, $noreg, implicit-def $cpsr
277  ; CHECK:   t2IT 0, 8, implicit-def $itstate
278  ; CHECK:   tBX_RET 0 /* CC::eq */, killed $cpsr, implicit $s0, implicit killed $itstate
279  ; CHECK: bb.1.vector.ph:
280  ; CHECK:   successors: %bb.2(0x80000000)
281  ; CHECK:   liveins: $lr, $r0, $r1, $r2, $s0
282  ; CHECK:   frame-setup tPUSH 14 /* CC::al */, $noreg, killed $lr, implicit-def $sp, implicit $sp
283  ; CHECK:   frame-setup CFI_INSTRUCTION def_cfa_offset 8
284  ; CHECK:   frame-setup CFI_INSTRUCTION offset $lr, -4
285  ; CHECK:   frame-setup CFI_INSTRUCTION offset $r7, -8
286  ; CHECK:   dead $r7 = frame-setup tMOVr $sp, 14 /* CC::al */, $noreg
287  ; CHECK:   frame-setup CFI_INSTRUCTION def_cfa_register $r7
288  ; CHECK:   renamable $r3, dead $cpsr = tMOVi8 3, 14 /* CC::al */, $noreg
289  ; CHECK:   renamable $r3 = nuw nsw t2ADDrs killed renamable $r3, renamable $r2, 19, 14 /* CC::al */, $noreg, $noreg
290  ; CHECK:   renamable $r3 = t2BICri killed renamable $r3, 3, 14 /* CC::al */, $noreg, $noreg
291  ; CHECK:   renamable $r12 = t2SUBri killed renamable $r3, 4, 14 /* CC::al */, $noreg, $noreg
292  ; CHECK:   renamable $r3, dead $cpsr = tMOVi8 1, 14 /* CC::al */, $noreg
293  ; CHECK:   renamable $lr = t2ADDrs killed renamable $r3, killed renamable $r12, 19, 14 /* CC::al */, $noreg, $noreg
294  ; CHECK:   renamable $r3 = tLDRpci %const.0, 14 /* CC::al */, $noreg :: (load 4 from constant-pool)
295  ; CHECK:   $lr = t2DLS killed renamable $lr
296  ; CHECK:   renamable $q1 = MVE_VDUP32 killed renamable $r3, 0, $noreg, undef renamable $q1
297  ; CHECK:   renamable $r2, dead $cpsr = tLSRri killed renamable $r2, 2, 14 /* CC::al */, $noreg
298  ; CHECK:   $s4 = VMOVS killed $s0, 14 /* CC::al */, $noreg, implicit killed $q1, implicit-def $q1
299  ; CHECK: bb.2.vector.body:
300  ; CHECK:   successors: %bb.2(0x7c000000), %bb.3(0x04000000)
301  ; CHECK:   liveins: $lr, $q1, $r0, $r1, $r2
302  ; CHECK:   renamable $vpr = MVE_VCTP32 renamable $r2, 0, $noreg
303  ; CHECK:   renamable $r2, dead $cpsr = tSUBi8 killed renamable $r2, 4, 14 /* CC::al */, $noreg
304  ; CHECK:   MVE_VPST 2, implicit $vpr
305  ; CHECK:   renamable $r0, renamable $q0 = MVE_VLDRWU32_post killed renamable $r0, 16, 1, renamable $vpr :: (load 16 from %ir.lsr.iv13, align 4)
306  ; CHECK:   renamable $r1, renamable $q2 = MVE_VLDRWU32_post killed renamable $r1, 16, 1, renamable $vpr :: (load 16 from %ir.lsr.iv1416, align 4)
307  ; CHECK:   renamable $q1 = MVE_VFMAf32 killed renamable $q1, killed renamable $q2, killed renamable $q0, 1, killed renamable $vpr
308  ; CHECK:   $lr = t2LEUpdate killed renamable $lr, %bb.2
309  ; CHECK: bb.3.middle.block:
310  ; CHECK:   liveins: $q1
311  ; CHECK:   renamable $s0 = nnan ninf nsz arcp contract afn reassoc VADDS renamable $s6, renamable $s7, 14 /* CC::al */, $noreg
312  ; CHECK:   renamable $s2 = nnan ninf nsz arcp contract afn reassoc VADDS killed renamable $s4, killed renamable $s5, 14 /* CC::al */, $noreg, implicit killed $q1
313  ; CHECK:   renamable $s0 = nnan ninf nsz arcp contract afn reassoc VADDS killed renamable $s2, killed renamable $s0, 14 /* CC::al */, $noreg
314  ; CHECK:   $sp = frame-destroy t2LDMIA_UPD $sp, 14 /* CC::al */, $noreg, def $r7, def $lr
315  ; CHECK:   tBX_RET 14 /* CC::al */, $noreg, implicit killed $s0
316  ; CHECK: bb.4 (align 4):
317  ; CHECK:   CONSTPOOL_ENTRY 0, %const.0, 4
318  bb.0.entry:
319    successors: %bb.1(0x80000000)
320    liveins: $r0, $r1, $r2, $s0, $lr
321
322    renamable $r3, dead $cpsr = tMOVi8 0, 14 /* CC::al */, $noreg
323    t2CMPrs killed renamable $r3, renamable $r2, 19, 14 /* CC::al */, $noreg, implicit-def $cpsr
324    t2IT 0, 8, implicit-def $itstate
325    tBX_RET 0 /* CC::eq */, killed $cpsr, implicit $s0, implicit killed $itstate
326
327  bb.1.vector.ph:
328    successors: %bb.2(0x80000000)
329    liveins: $r0, $r1, $r2, $s0, $lr
330
331    frame-setup tPUSH 14 /* CC::al */, $noreg, killed $lr, implicit-def $sp, implicit $sp
332    frame-setup CFI_INSTRUCTION def_cfa_offset 8
333    frame-setup CFI_INSTRUCTION offset $lr, -4
334    frame-setup CFI_INSTRUCTION offset $r7, -8
335    $r7 = frame-setup tMOVr $sp, 14 /* CC::al */, $noreg
336    frame-setup CFI_INSTRUCTION def_cfa_register $r7
337    renamable $r3, dead $cpsr = tMOVi8 3, 14 /* CC::al */, $noreg
338    renamable $r3 = nuw nsw t2ADDrs killed renamable $r3, renamable $r2, 19, 14 /* CC::al */, $noreg, $noreg
339    renamable $r3 = t2BICri killed renamable $r3, 3, 14 /* CC::al */, $noreg, $noreg
340    renamable $r12 = t2SUBri killed renamable $r3, 4, 14 /* CC::al */, $noreg, $noreg
341    renamable $r3, dead $cpsr = tMOVi8 1, 14 /* CC::al */, $noreg
342    renamable $lr = t2ADDrs killed renamable $r3, killed renamable $r12, 19, 14 /* CC::al */, $noreg, $noreg
343    renamable $r3 = tLDRpci %const.0, 14 /* CC::al */, $noreg :: (load 4 from constant-pool)
344    $lr = t2DoLoopStart renamable $lr
345    renamable $q1 = MVE_VDUP32 killed renamable $r3, 0, $noreg, undef renamable $q1
346    renamable $r2, dead $cpsr = tLSRri killed renamable $r2, 2, 14 /* CC::al */, $noreg
347    $s4 = VMOVS killed $s0, 14 /* CC::al */, $noreg, implicit killed $q1, implicit-def $q1
348
349  bb.2.vector.body:
350    successors: %bb.2(0x7c000000), %bb.3(0x04000000)
351    liveins: $lr, $q1, $r0, $r1, $r2
352
353    renamable $vpr = MVE_VCTP32 renamable $r2, 0, $noreg
354    renamable $r2, dead $cpsr = tSUBi8 killed renamable $r2, 4, 14 /* CC::al */, $noreg
355    renamable $lr = t2LoopDec killed renamable $lr, 1
356    MVE_VPST 2, implicit $vpr
357    renamable $r0, renamable $q0 = MVE_VLDRWU32_post killed renamable $r0, 16, 1, renamable $vpr :: (load 16 from %ir.lsr.iv13, align 4)
358    renamable $r1, renamable $q2 = MVE_VLDRWU32_post killed renamable $r1, 16, 1, renamable $vpr :: (load 16 from %ir.lsr.iv1416, align 4)
359    renamable $q1 = MVE_VFMAf32 killed renamable $q1, killed renamable $q2, killed renamable $q0, 1, killed renamable $vpr
360    t2LoopEnd renamable $lr, %bb.2, implicit-def dead $cpsr
361    tB %bb.3, 14 /* CC::al */, $noreg
362
363  bb.3.middle.block:
364    liveins: $q1
365
366    renamable $s0 = nnan ninf nsz arcp contract afn reassoc VADDS renamable $s6, renamable $s7, 14 /* CC::al */, $noreg
367    renamable $s2 = nnan ninf nsz arcp contract afn reassoc VADDS killed renamable $s4, killed renamable $s5, 14 /* CC::al */, $noreg, implicit $q1
368    renamable $s0 = nnan ninf nsz arcp contract afn reassoc VADDS killed renamable $s2, killed renamable $s0, 14 /* CC::al */, $noreg
369    $sp = frame-destroy t2LDMIA_UPD $sp, 14 /* CC::al */, $noreg, def $r7, def $lr
370    tBX_RET 14 /* CC::al */, $noreg, implicit killed $s0
371
372  bb.4 (align 4):
373    CONSTPOOL_ENTRY 0, %const.0, 4
374
375...
376