1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -run-pass arm-mve-vpt %s -o - | FileCheck %s
5 target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
6 target triple = "thumbv8.1m.main-none-none-eabi"
8 define arm_aapcs_vfpcc <4 x float> @vpt_preuse(<4 x float> %inactive1, <4 x float> %a, <4 x float> %b, i16 zeroext %p1, i16 zeroext %p2) #0 {
11 ; Intentionally left blank, see the MIR sequence below.
13 ret <4 x float> %inactive1
16 attributes #0 = { "target-features"="+armv8.1-m.main,+hwdiv,+mve.fp,+ras,+thumb-mode" }
22 exposesReturnsTwice: false
24 regBankSelected: false
27 tracksRegLiveness: true
31 - { reg: '$q0', virtual-reg: '' }
32 - { reg: '$q1', virtual-reg: '' }
33 - { reg: '$q2', virtual-reg: '' }
34 - { reg: '$q5', virtual-reg: '' }
35 - { reg: '$r0', virtual-reg: '' }
36 - { reg: '$r1', virtual-reg: '' }
38 isFrameAddressTaken: false
39 isReturnAddressTaken: false
49 cvBytesOfCalleeSavedRegisters: 0
50 hasOpaqueSPAdjustment: false
52 hasMustTailInVarArgFunc: false
61 liveins: $lr, $q0, $q1, $q2, $q3, $q4, $q5, $r0, $r1, $r2, $r7, $r8, $r9, $r10, $r11, $r12
64 ; CHECK-LABEL: name: vpt_preuse
65 ; CHECK: successors: %bb.0(0x80000000)
66 ; CHECK: liveins: $lr, $q0, $q1, $q2, $q3, $q4, $q5, $r0, $r1, $r2, $r7, $r8, $r9, $r10, $r11, $r12
67 ; CHECK: renamable $vpr = MVE_VCMPu32 renamable $q1, renamable $q5, 2, 0, $noreg, $noreg
68 ; CHECK: renamable $r4 = t2ADDrr renamable $r2, renamable $r10, 14 /* CC::al */, $noreg, $noreg
69 ; CHECK: VSTR_P0_off renamable $vpr, $sp, 0, 14 /* CC::al */, $noreg
70 ; CHECK: BUNDLE implicit-def $q6, implicit-def $d12, implicit-def $s24, implicit-def $s25, implicit-def $d13, implicit-def $s26, implicit-def $s27, implicit $vpr, implicit killed $r4 {
71 ; CHECK: MVE_VPST 8, implicit $vpr
72 ; CHECK: renamable $q6 = MVE_VLDRBU32 killed renamable $r4, 0, 1, renamable $vpr, $noreg
74 ; CHECK: t2LoopEnd renamable $lr, %bb.0, implicit-def dead $cpsr
75 ; CHECK: t2B %bb.0, 14 /* CC::al */, $noreg
76 renamable $vpr = MVE_VCMPu32 renamable $q1, renamable $q5, 2, 0, $noreg, $noreg
77 renamable $r4 = t2ADDrr renamable $r2, renamable $r10, 14, $noreg, $noreg
78 VSTR_P0_off renamable $vpr, $sp, 0, 14, $noreg
79 renamable $q6 = MVE_VLDRBU32 killed renamable $r4, 0, 1, renamable $vpr, $noreg
80 t2LoopEnd renamable $lr, %bb.0, implicit-def dead $cpsr