Skip to content

Commit 1a8c67e

Browse files
committed
fix the coments and clang-format for test
1 parent 3bb8859 commit 1a8c67e

File tree

3 files changed

+178
-180
lines changed

3 files changed

+178
-180
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,8 +1068,7 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
10681068
Opcodes = {RISCV::VFWCVTBF16_F_F_V, RISCV::VFWCVTBF16_F_F_V,
10691069
RISCV::VFSQRT_V, RISCV::VFSQRT_V,
10701070
RISCV::VFNCVTBF16_F_F_W, RISCV::VFNCVTBF16_F_F_W};
1071-
NVT = TLI->getTypeToPromoteTo(ISD::FSQRT,
1072-
NVT.getHalfNumVectorElementsVT());
1071+
NVT = MVT::nxv16f32;
10731072
} else {
10741073
Opcodes = {RISCV::VFWCVTBF16_F_F_V, RISCV::VFSQRT_V,
10751074
RISCV::VFNCVTBF16_F_F_W};
@@ -1081,8 +1080,7 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
10811080
Opcodes = {RISCV::VFWCVT_F_F_V, RISCV::VFWCVT_F_F_V,
10821081
RISCV::VFSQRT_V, RISCV::VFSQRT_V,
10831082
RISCV::VFNCVT_F_F_W, RISCV::VFNCVT_F_F_W};
1084-
NVT = TLI->getTypeToPromoteTo(ISD::FSQRT,
1085-
NVT.getHalfNumVectorElementsVT());
1083+
NVT = NVT = MVT::nxv16f32;
10861084
} else {
10871085
Opcodes = {RISCV::VFWCVT_F_F_V, RISCV::VFSQRT_V, RISCV::VFNCVT_F_F_W};
10881086
NVT = TLI->getTypeToPromoteTo(ISD::FSQRT, NVT);

llvm/test/Analysis/CostModel/RISCV/fp-min-max-abs.ll

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -4,101 +4,101 @@
44

55
define void @fabs() {
66
; CHECK-LABEL: 'fabs'
7-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = call bfloat @llvm.fabs.bf16(bfloat undef)
8-
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %2 = call <2 x bfloat> @llvm.fabs.v2bf16(<2 x bfloat> undef)
9-
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %3 = call <4 x bfloat> @llvm.fabs.v4bf16(<4 x bfloat> undef)
10-
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %4 = call <8 x bfloat> @llvm.fabs.v8bf16(<8 x bfloat> undef)
11-
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %5 = call <16 x bfloat> @llvm.fabs.v16bf16(<16 x bfloat> undef)
12-
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %6 = call <vscale x 2 x bfloat> @llvm.fabs.nxv2bf16(<vscale x 2 x bfloat> undef)
13-
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %7 = call <vscale x 4 x bfloat> @llvm.fabs.nxv4bf16(<vscale x 4 x bfloat> undef)
14-
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %8 = call <vscale x 8 x bfloat> @llvm.fabs.nxv8bf16(<vscale x 8 x bfloat> undef)
15-
; CHECK-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %9 = call <vscale x 16 x bfloat> @llvm.fabs.nxv16bf16(<vscale x 16 x bfloat> undef)
16-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %10 = call float @llvm.fabs.f32(float undef)
17-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %11 = call <2 x float> @llvm.fabs.v2f32(<2 x float> undef)
18-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %12 = call <4 x float> @llvm.fabs.v4f32(<4 x float> undef)
19-
; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %13 = call <8 x float> @llvm.fabs.v8f32(<8 x float> undef)
20-
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %14 = call <16 x float> @llvm.fabs.v16f32(<16 x float> undef)
21-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %15 = call <vscale x 1 x float> @llvm.fabs.nxv1f32(<vscale x 1 x float> undef)
22-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %16 = call <vscale x 2 x float> @llvm.fabs.nxv2f32(<vscale x 2 x float> undef)
23-
; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %17 = call <vscale x 4 x float> @llvm.fabs.nxv4f32(<vscale x 4 x float> undef)
24-
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %18 = call <vscale x 8 x float> @llvm.fabs.nxv8f32(<vscale x 8 x float> undef)
25-
; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %19 = call <vscale x 16 x float> @llvm.fabs.nxv16f32(<vscale x 16 x float> undef)
26-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %20 = call double @llvm.fabs.f64(double undef)
27-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %21 = call <2 x double> @llvm.fabs.v2f64(<2 x double> undef)
28-
; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %22 = call <4 x double> @llvm.fabs.v4f64(<4 x double> undef)
29-
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %23 = call <8 x double> @llvm.fabs.v8f64(<8 x double> undef)
30-
; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %24 = call <16 x double> @llvm.fabs.v16f64(<16 x double> undef)
31-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %25 = call <vscale x 1 x double> @llvm.fabs.nxv1f64(<vscale x 1 x double> undef)
32-
; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %26 = call <vscale x 2 x double> @llvm.fabs.nxv2f64(<vscale x 2 x double> undef)
33-
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %27 = call <vscale x 4 x double> @llvm.fabs.nxv4f64(<vscale x 4 x double> undef)
34-
; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %28 = call <vscale x 8 x double> @llvm.fabs.nxv8f64(<vscale x 8 x double> undef)
7+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = call bfloat @llvm.fabs.bf16(bfloat poison)
8+
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %2 = call <2 x bfloat> @llvm.fabs.v2bf16(<2 x bfloat> poison)
9+
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %3 = call <4 x bfloat> @llvm.fabs.v4bf16(<4 x bfloat> poison)
10+
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %4 = call <8 x bfloat> @llvm.fabs.v8bf16(<8 x bfloat> poison)
11+
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %5 = call <16 x bfloat> @llvm.fabs.v16bf16(<16 x bfloat> poison)
12+
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %6 = call <vscale x 2 x bfloat> @llvm.fabs.nxv2bf16(<vscale x 2 x bfloat> poison)
13+
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %7 = call <vscale x 4 x bfloat> @llvm.fabs.nxv4bf16(<vscale x 4 x bfloat> poison)
14+
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %8 = call <vscale x 8 x bfloat> @llvm.fabs.nxv8bf16(<vscale x 8 x bfloat> poison)
15+
; CHECK-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %9 = call <vscale x 16 x bfloat> @llvm.fabs.nxv16bf16(<vscale x 16 x bfloat> poison)
16+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %10 = call float @llvm.fabs.f32(float poison)
17+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %11 = call <2 x float> @llvm.fabs.v2f32(<2 x float> poison)
18+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %12 = call <4 x float> @llvm.fabs.v4f32(<4 x float> poison)
19+
; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %13 = call <8 x float> @llvm.fabs.v8f32(<8 x float> poison)
20+
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %14 = call <16 x float> @llvm.fabs.v16f32(<16 x float> poison)
21+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %15 = call <vscale x 1 x float> @llvm.fabs.nxv1f32(<vscale x 1 x float> poison)
22+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %16 = call <vscale x 2 x float> @llvm.fabs.nxv2f32(<vscale x 2 x float> poison)
23+
; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %17 = call <vscale x 4 x float> @llvm.fabs.nxv4f32(<vscale x 4 x float> poison)
24+
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %18 = call <vscale x 8 x float> @llvm.fabs.nxv8f32(<vscale x 8 x float> poison)
25+
; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %19 = call <vscale x 16 x float> @llvm.fabs.nxv16f32(<vscale x 16 x float> poison)
26+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %20 = call double @llvm.fabs.f64(double poison)
27+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %21 = call <2 x double> @llvm.fabs.v2f64(<2 x double> poison)
28+
; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %22 = call <4 x double> @llvm.fabs.v4f64(<4 x double> poison)
29+
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %23 = call <8 x double> @llvm.fabs.v8f64(<8 x double> poison)
30+
; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %24 = call <16 x double> @llvm.fabs.v16f64(<16 x double> poison)
31+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %25 = call <vscale x 1 x double> @llvm.fabs.nxv1f64(<vscale x 1 x double> poison)
32+
; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %26 = call <vscale x 2 x double> @llvm.fabs.nxv2f64(<vscale x 2 x double> poison)
33+
; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %27 = call <vscale x 4 x double> @llvm.fabs.nxv4f64(<vscale x 4 x double> poison)
34+
; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %28 = call <vscale x 8 x double> @llvm.fabs.nxv8f64(<vscale x 8 x double> poison)
3535
; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void
3636
;
37-
call bfloat @llvm.fabs.bf16(bfloat undef)
38-
call <2 x bfloat> @llvm.fabs.v2bf16(<2 x bfloat> undef)
39-
call <4 x bfloat> @llvm.fabs.v4bf16(<4 x bfloat> undef)
40-
call <8 x bfloat> @llvm.fabs.v8bf16(<8 x bfloat> undef)
41-
call <16 x bfloat> @llvm.fabs.v16f16(<16 x bfloat> undef)
42-
call <vscale x 2 x bfloat> @llvm.fabs.nxv2bf16(<vscale x 2 x bfloat> undef)
43-
call <vscale x 4 x bfloat> @llvm.fabs.nxv4bf16(<vscale x 4 x bfloat> undef)
44-
call <vscale x 8 x bfloat> @llvm.fabs.nxv8bf16(<vscale x 8 x bfloat> undef)
45-
call <vscale x 16 x bfloat> @llvm.fabs.nxv16f16(<vscale x 16 x bfloat> undef)
46-
call float @llvm.fabs.f32(float undef)
47-
call <2 x float> @llvm.fabs.v2f32(<2 x float> undef)
48-
call <4 x float> @llvm.fabs.v4f32(<4 x float> undef)
49-
call <8 x float> @llvm.fabs.v8f32(<8 x float> undef)
50-
call <16 x float> @llvm.fabs.v16f32(<16 x float> undef)
51-
call <vscale x 1 x float> @llvm.fabs.nxv1f32(<vscale x 1 x float> undef)
52-
call <vscale x 2 x float> @llvm.fabs.nxv2f32(<vscale x 2 x float> undef)
53-
call <vscale x 4 x float> @llvm.fabs.nxv4f32(<vscale x 4 x float> undef)
54-
call <vscale x 8 x float> @llvm.fabs.nxv8f32(<vscale x 8 x float> undef)
55-
call <vscale x 16 x float> @llvm.fabs.nxv16f32(<vscale x 16 x float> undef)
56-
call double @llvm.fabs.f64(double undef)
57-
call <2 x double> @llvm.fabs.v2f64(<2 x double> undef)
58-
call <4 x double> @llvm.fabs.v4f64(<4 x double> undef)
59-
call <8 x double> @llvm.fabs.v8f64(<8 x double> undef)
60-
call <16 x double> @llvm.fabs.v16f64(<16 x double> undef)
61-
call <vscale x 1 x double> @llvm.fabs.nxv1f64(<vscale x 1 x double> undef)
62-
call <vscale x 2 x double> @llvm.fabs.nxv2f64(<vscale x 2 x double> undef)
63-
call <vscale x 4 x double> @llvm.fabs.nxv4f64(<vscale x 4 x double> undef)
64-
call <vscale x 8 x double> @llvm.fabs.nxv8f64(<vscale x 8 x double> undef)
37+
call bfloat @llvm.fabs.bf16(bfloat poison)
38+
call <2 x bfloat> @llvm.fabs.v2bf16(<2 x bfloat> poison)
39+
call <4 x bfloat> @llvm.fabs.v4bf16(<4 x bfloat> poison)
40+
call <8 x bfloat> @llvm.fabs.v8bf16(<8 x bfloat> poison)
41+
call <16 x bfloat> @llvm.fabs.v16f16(<16 x bfloat> poison)
42+
call <vscale x 2 x bfloat> @llvm.fabs.nxv2bf16(<vscale x 2 x bfloat> poison)
43+
call <vscale x 4 x bfloat> @llvm.fabs.nxv4bf16(<vscale x 4 x bfloat> poison)
44+
call <vscale x 8 x bfloat> @llvm.fabs.nxv8bf16(<vscale x 8 x bfloat> poison)
45+
call <vscale x 16 x bfloat> @llvm.fabs.nxv16f16(<vscale x 16 x bfloat> poison)
46+
call float @llvm.fabs.f32(float poison)
47+
call <2 x float> @llvm.fabs.v2f32(<2 x float> poison)
48+
call <4 x float> @llvm.fabs.v4f32(<4 x float> poison)
49+
call <8 x float> @llvm.fabs.v8f32(<8 x float> poison)
50+
call <16 x float> @llvm.fabs.v16f32(<16 x float> poison)
51+
call <vscale x 1 x float> @llvm.fabs.nxv1f32(<vscale x 1 x float> poison)
52+
call <vscale x 2 x float> @llvm.fabs.nxv2f32(<vscale x 2 x float> poison)
53+
call <vscale x 4 x float> @llvm.fabs.nxv4f32(<vscale x 4 x float> poison)
54+
call <vscale x 8 x float> @llvm.fabs.nxv8f32(<vscale x 8 x float> poison)
55+
call <vscale x 16 x float> @llvm.fabs.nxv16f32(<vscale x 16 x float> poison)
56+
call double @llvm.fabs.f64(double poison)
57+
call <2 x double> @llvm.fabs.v2f64(<2 x double> poison)
58+
call <4 x double> @llvm.fabs.v4f64(<4 x double> poison)
59+
call <8 x double> @llvm.fabs.v8f64(<8 x double> poison)
60+
call <16 x double> @llvm.fabs.v16f64(<16 x double> poison)
61+
call <vscale x 1 x double> @llvm.fabs.nxv1f64(<vscale x 1 x double> poison)
62+
call <vscale x 2 x double> @llvm.fabs.nxv2f64(<vscale x 2 x double> poison)
63+
call <vscale x 4 x double> @llvm.fabs.nxv4f64(<vscale x 4 x double> poison)
64+
call <vscale x 8 x double> @llvm.fabs.nxv8f64(<vscale x 8 x double> poison)
6565
ret void
6666
}
6767

6868
define void @fabs_f16() {
6969
; ZVFH-LABEL: 'fabs_f16'
70-
; ZVFH-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = call half @llvm.fabs.f16(half undef)
71-
; ZVFH-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %2 = call <2 x half> @llvm.fabs.v2f16(<2 x half> undef)
72-
; ZVFH-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %3 = call <4 x half> @llvm.fabs.v4f16(<4 x half> undef)
73-
; ZVFH-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %4 = call <8 x half> @llvm.fabs.v8f16(<8 x half> undef)
74-
; ZVFH-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %5 = call <16 x half> @llvm.fabs.v16f16(<16 x half> undef)
75-
; ZVFH-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %6 = call <vscale x 2 x half> @llvm.fabs.nxv2f16(<vscale x 2 x half> undef)
76-
; ZVFH-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = call <vscale x 4 x half> @llvm.fabs.nxv4f16(<vscale x 4 x half> undef)
77-
; ZVFH-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %8 = call <vscale x 8 x half> @llvm.fabs.nxv8f16(<vscale x 8 x half> undef)
78-
; ZVFH-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %9 = call <vscale x 16 x half> @llvm.fabs.nxv16f16(<vscale x 16 x half> undef)
70+
; ZVFH-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = call half @llvm.fabs.f16(half poison)
71+
; ZVFH-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %2 = call <2 x half> @llvm.fabs.v2f16(<2 x half> poison)
72+
; ZVFH-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %3 = call <4 x half> @llvm.fabs.v4f16(<4 x half> poison)
73+
; ZVFH-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %4 = call <8 x half> @llvm.fabs.v8f16(<8 x half> poison)
74+
; ZVFH-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %5 = call <16 x half> @llvm.fabs.v16f16(<16 x half> poison)
75+
; ZVFH-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %6 = call <vscale x 2 x half> @llvm.fabs.nxv2f16(<vscale x 2 x half> poison)
76+
; ZVFH-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = call <vscale x 4 x half> @llvm.fabs.nxv4f16(<vscale x 4 x half> poison)
77+
; ZVFH-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %8 = call <vscale x 8 x half> @llvm.fabs.nxv8f16(<vscale x 8 x half> poison)
78+
; ZVFH-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %9 = call <vscale x 16 x half> @llvm.fabs.nxv16f16(<vscale x 16 x half> poison)
7979
; ZVFH-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void
8080
;
8181
; ZVFHMIN-LABEL: 'fabs_f16'
82-
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = call half @llvm.fabs.f16(half undef)
83-
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %2 = call <2 x half> @llvm.fabs.v2f16(<2 x half> undef)
84-
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %3 = call <4 x half> @llvm.fabs.v4f16(<4 x half> undef)
85-
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %4 = call <8 x half> @llvm.fabs.v8f16(<8 x half> undef)
86-
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %5 = call <16 x half> @llvm.fabs.v16f16(<16 x half> undef)
87-
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %6 = call <vscale x 2 x half> @llvm.fabs.nxv2f16(<vscale x 2 x half> undef)
88-
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %7 = call <vscale x 4 x half> @llvm.fabs.nxv4f16(<vscale x 4 x half> undef)
89-
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %8 = call <vscale x 8 x half> @llvm.fabs.nxv8f16(<vscale x 8 x half> undef)
90-
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %9 = call <vscale x 16 x half> @llvm.fabs.nxv16f16(<vscale x 16 x half> undef)
82+
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = call half @llvm.fabs.f16(half poison)
83+
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %2 = call <2 x half> @llvm.fabs.v2f16(<2 x half> poison)
84+
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %3 = call <4 x half> @llvm.fabs.v4f16(<4 x half> poison)
85+
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %4 = call <8 x half> @llvm.fabs.v8f16(<8 x half> poison)
86+
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %5 = call <16 x half> @llvm.fabs.v16f16(<16 x half> poison)
87+
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %6 = call <vscale x 2 x half> @llvm.fabs.nxv2f16(<vscale x 2 x half> poison)
88+
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %7 = call <vscale x 4 x half> @llvm.fabs.nxv4f16(<vscale x 4 x half> poison)
89+
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %8 = call <vscale x 8 x half> @llvm.fabs.nxv8f16(<vscale x 8 x half> poison)
90+
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %9 = call <vscale x 16 x half> @llvm.fabs.nxv16f16(<vscale x 16 x half> poison)
9191
; ZVFHMIN-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void
9292
;
93-
call half @llvm.fabs.f16(half undef)
94-
call <2 x half> @llvm.fabs.v2f16(<2 x half> undef)
95-
call <4 x half> @llvm.fabs.v4f16(<4 x half> undef)
96-
call <8 x half> @llvm.fabs.v8f16(<8 x half> undef)
97-
call <16 x half> @llvm.fabs.v16f16(<16 x half> undef)
98-
call <vscale x 2 x half> @llvm.fabs.nxv2f16(<vscale x 2 x half> undef)
99-
call <vscale x 4 x half> @llvm.fabs.nxv4f16(<vscale x 4 x half> undef)
100-
call <vscale x 8 x half> @llvm.fabs.nxv8f16(<vscale x 8 x half> undef)
101-
call <vscale x 16 x half> @llvm.fabs.nxv16f16(<vscale x 16 x half> undef)
93+
call half @llvm.fabs.f16(half poison)
94+
call <2 x half> @llvm.fabs.v2f16(<2 x half> poison)
95+
call <4 x half> @llvm.fabs.v4f16(<4 x half> poison)
96+
call <8 x half> @llvm.fabs.v8f16(<8 x half> poison)
97+
call <16 x half> @llvm.fabs.v16f16(<16 x half> poison)
98+
call <vscale x 2 x half> @llvm.fabs.nxv2f16(<vscale x 2 x half> poison)
99+
call <vscale x 4 x half> @llvm.fabs.nxv4f16(<vscale x 4 x half> poison)
100+
call <vscale x 8 x half> @llvm.fabs.nxv8f16(<vscale x 8 x half> poison)
101+
call <vscale x 16 x half> @llvm.fabs.nxv16f16(<vscale x 16 x half> poison)
102102
ret void
103103
}
104104

0 commit comments

Comments
 (0)