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 hidden arm_aapcs_vfpcc <4 x float> @vpt_2_blocks_2_preds(<4 x float> %inactive1, <4 x float> %a, <4 x float> %b, i16 zeroext %p1, i16 zeroext %p2) local_unnamed_addr #0 {
10 %conv.i = zext i16 %p1 to i32
11 %0 = tail call nnan ninf nsz <4 x float> @llvm.arm.mve.vminnm.m.v4f32.v4f32.v4f32.v4f32.i32(<4 x float> %inactive1, <4 x float> %a, <4 x float> %b, i32 %conv.i) #2
12 %conv.i5 = zext i16 %p2 to i32
13 %1 = tail call nnan ninf nsz <4 x float> @llvm.arm.mve.vminnm.m.v4f32.v4f32.v4f32.v4f32.i32(<4 x float> %inactive1, <4 x float> %0, <4 x float> %b, i32 %conv.i5) #2
17 declare <4 x float> @llvm.arm.mve.vminnm.m.v4f32.v4f32.v4f32.v4f32.i32(<4 x float>, <4 x float>, <4 x float>, i32) #1
19 attributes #0 = { nounwind readnone "correctly-rounded-divide-sqrt-fp-math"="false" "denormal-fp-math"="preserve-sign" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="128" "frame-pointer"="none" "no-infs-fp-math"="true" "no-jump-tables"="false" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+armv8.1-m.main,+hwdiv,+mve.fp,+ras,+thumb-mode" "unsafe-fp-math"="false" "use-soft-float"="false" }
20 attributes #1 = { nounwind readnone }
21 attributes #2 = { nounwind }
25 name: vpt_2_blocks_2_preds
27 exposesReturnsTwice: false
29 regBankSelected: false
32 tracksRegLiveness: true
36 - { reg: '$q0', virtual-reg: '' }
37 - { reg: '$q1', virtual-reg: '' }
38 - { reg: '$q2', virtual-reg: '' }
39 - { reg: '$r0', virtual-reg: '' }
40 - { reg: '$r1', virtual-reg: '' }
42 isFrameAddressTaken: false
43 isReturnAddressTaken: false
53 cvBytesOfCalleeSavedRegisters: 0
54 hasOpaqueSPAdjustment: false
56 hasMustTailInVarArgFunc: false
65 liveins: $q0, $q1, $q2, $r0, $r1
67 ; CHECK-LABEL: name: vpt_2_blocks_2_preds
68 ; CHECK: liveins: $q0, $q1, $q2, $r0, $r1
69 ; CHECK: $vpr = VMSR_P0 killed $r0, 14 /* CC::al */, $noreg
70 ; CHECK: $q3 = MVE_VORR $q0, $q0, 0, $noreg, $noreg, undef $q3
71 ; CHECK: BUNDLE implicit-def $q3, implicit-def $d6, implicit-def $s12, implicit-def $s13, implicit-def $d7, implicit-def $s14, implicit-def $s15, implicit killed $vpr, implicit killed $q1, implicit $q2, implicit killed $q3 {
72 ; CHECK: MVE_VPST 8, implicit $vpr
73 ; CHECK: renamable $q3 = nnan ninf nsz MVE_VMINNMf32 killed renamable $q1, renamable $q2, 1, killed renamable $vpr, $noreg, killed renamable $q3
75 ; CHECK: $vpr = VMSR_P0 killed $r1, 14 /* CC::al */, $noreg
76 ; CHECK: BUNDLE implicit-def $q0, implicit-def $d0, implicit-def $s0, implicit-def $s1, implicit-def $d1, implicit-def $s2, implicit-def $s3, implicit killed $vpr, implicit killed $q3, implicit killed $q2, implicit killed $q0 {
77 ; CHECK: MVE_VPST 8, implicit $vpr
78 ; CHECK: renamable $q0 = nnan ninf nsz MVE_VMINNMf32 killed renamable $q3, killed renamable $q2, 1, killed renamable $vpr, $noreg, killed renamable $q0
80 ; CHECK: tBX_RET 14 /* CC::al */, $noreg, implicit $q0
81 $vpr = VMSR_P0 killed $r0, 14, $noreg
82 $q3 = MVE_VORR $q0, $q0, 0, $noreg, $noreg, undef $q3
83 renamable $q3 = nnan ninf nsz MVE_VMINNMf32 killed renamable $q1, renamable $q2, 1, killed renamable $vpr, $noreg, killed renamable $q3
84 $vpr = VMSR_P0 killed $r1, 14, $noreg
85 renamable $q0 = nnan ninf nsz MVE_VMINNMf32 killed renamable $q3, killed renamable $q2, 1, killed renamable $vpr, $noreg, killed renamable $q0
86 tBX_RET 14, $noreg, implicit $q0