11# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2- # RUN: llc -run-pass arm-mve-vpt %s -o - | FileCheck %s
2+ # RUN: llc -mtriple=thumbv8.1m.main-none-none-eabi -mattr=+mve.fp - run-pass arm-mve-vpt %s -o - | FileCheck %s
33
4- --- |
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"
7-
8- define hidden arm_aapcs_vfpcc <4 x float> @vpt_2_blocks_ctrl_flow(<4 x float> %inactive1, <4 x float> %a, <4 x float> %b, i16 zeroext %p) local_unnamed_addr # 0 {
9- entry :
10- %conv.i = zext i16 %p 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- %1 = tail call nnan ninf nsz <4 x float> @llvm.arm.mve.vminnm.m.v4f32.v4f32.v4f32.v4f32.i32(<4 x float> undef, <4 x float> %0, <4 x float> %0, i32 %conv.i) # 2
13- br label %bb2
14- bb2 :
15- %2 = 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> %1, <4 x float> %b, i32 %conv.i) # 2
16- %3 = 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> %2, <4 x float> %b, i32 %conv.i) # 2
17- ret <4 x float> %3
18- }
19-
20- 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
21-
22- 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" "use-soft-float"="false" }
23- attributes # 1 = { nounwind readnone }
24- attributes # 2 = { nounwind }
25-
26- ...
274---
285name : vpt_2_blocks_ctrl_flow
296alignment : 4
@@ -64,7 +41,7 @@ stack: []
6441constants : []
6542body : |
6643 ; CHECK-LABEL: name: vpt_2_blocks_ctrl_flow
67- ; CHECK: bb.0.entry :
44+ ; CHECK: bb.0:
6845 ; CHECK: successors: %bb.1(0x80000000)
6946 ; CHECK: liveins: $q0, $q1, $q2, $r0
7047 ; CHECK: $vpr = VMSR_P0 killed $r0, 14 /* CC::al */, $noreg
@@ -74,23 +51,23 @@ body: |
7451 ; CHECK: renamable $q3 = nnan ninf nsz MVE_VMINNMf32 killed renamable $q1, renamable $q2, 1, renamable $vpr, $noreg, killed renamable $q3
7552 ; CHECK: renamable $q1 = nnan ninf nsz MVE_VMINNMf32 internal renamable $q3, internal renamable $q3, 1, renamable $vpr, $noreg, undef renamable $q1
7653 ; CHECK: }
77- ; CHECK: bb.1.bb2 :
54+ ; CHECK: bb.1:
7855 ; CHECK: liveins: $q0, $q1, $q2, $q3, $vpr
7956 ; CHECK: BUNDLE implicit-def dead $q3, implicit-def $q0, implicit killed $vpr, implicit killed $q1, implicit killed $q2, implicit killed $q3, implicit killed $q0 {
8057 ; CHECK: MVE_VPST 4, implicit $vpr
8158 ; CHECK: renamable $q3 = nnan ninf nsz MVE_VMINNMf32 killed renamable $q1, renamable $q2, 1, renamable $vpr, $noreg, killed renamable $q3
8259 ; CHECK: renamable $q0 = nnan ninf nsz MVE_VMINNMf32 internal killed renamable $q3, killed renamable $q2, 1, killed renamable $vpr, $noreg, killed renamable $q0
8360 ; CHECK: }
8461 ; CHECK: tBX_RET 14 /* CC::al */, $noreg, implicit $q0
85- bb.0.entry :
62+ bb.0:
8663 liveins: $q0, $q1, $q2, $r0
8764
8865 $vpr = VMSR_P0 killed $r0, 14, $noreg
8966 $q3 = MVE_VORR $q0, $q0, 0, $noreg, $noreg, undef $q3
9067 renamable $q3 = nnan ninf nsz MVE_VMINNMf32 killed renamable $q1, renamable $q2, 1, renamable $vpr, $noreg, killed renamable $q3
9168 renamable $q1 = nnan ninf nsz MVE_VMINNMf32 renamable $q3, renamable $q3, 1, renamable $vpr, $noreg, undef renamable $q1
9269
93- bb.1.bb2 :
70+ bb.1:
9471 liveins: $q0, $q1, $q2, $q3, $vpr
9572
9673 renamable $q3 = nnan ninf nsz MVE_VMINNMf32 killed renamable $q1, renamable $q2, 1, renamable $vpr, $noreg, killed renamable $q3
0 commit comments