Skip to content

Commit 33e5d01

Browse files
authored
[CostModel][X86] merge vector shuffle costs tests using -cost-kind=all (#131819)
1 parent 70357a2 commit 33e5d01

File tree

88 files changed

+7935
-40920
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+7935
-40920
lines changed

llvm/test/Analysis/CostModel/X86/shuffle-broadcast-codesize.ll

Lines changed: 0 additions & 466 deletions
This file was deleted.

llvm/test/Analysis/CostModel/X86/shuffle-broadcast-fp16-codesize.ll

Lines changed: 0 additions & 19 deletions
This file was deleted.

llvm/test/Analysis/CostModel/X86/shuffle-broadcast-fp16-latency.ll

Lines changed: 0 additions & 19 deletions
This file was deleted.

llvm/test/Analysis/CostModel/X86/shuffle-broadcast-fp16-sizelatency.ll

Lines changed: 0 additions & 19 deletions
This file was deleted.

llvm/test/Analysis/CostModel/X86/shuffle-broadcast-fp16.ll

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
2-
; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -passes="print<cost-model>" 2>&1 -disable-output -mattr=+avx512fp16 | FileCheck %s
2+
; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -passes="print<cost-model>" 2>&1 -disable-output -cost-kind=all -mattr=+avx512fp16 | FileCheck %s
33

44
define void @test_vXf16(<2 x half> %src32, <4 x half> %src64, <8 x half> %src128, <16 x half> %src256, <32 x half> %src512) {
55
; CHECK-LABEL: 'test_vXf16'
6-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32 = shufflevector <2 x half> %src32, <2 x half> undef, <2 x i32> zeroinitializer
7-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64 = shufflevector <4 x half> %src64, <4 x half> undef, <4 x i32> zeroinitializer
8-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128 = shufflevector <8 x half> %src128, <8 x half> undef, <8 x i32> zeroinitializer
9-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V256 = shufflevector <16 x half> %src256, <16 x half> undef, <16 x i32> zeroinitializer
10-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V512 = shufflevector <32 x half> %src512, <32 x half> undef, <32 x i32> zeroinitializer
11-
; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void
6+
; CHECK-NEXT: Cost Model: Found costs of 1 for: %V32 = shufflevector <2 x half> %src32, <2 x half> undef, <2 x i32> zeroinitializer
7+
; CHECK-NEXT: Cost Model: Found costs of 1 for: %V64 = shufflevector <4 x half> %src64, <4 x half> undef, <4 x i32> zeroinitializer
8+
; CHECK-NEXT: Cost Model: Found costs of 1 for: %V128 = shufflevector <8 x half> %src128, <8 x half> undef, <8 x i32> zeroinitializer
9+
; CHECK-NEXT: Cost Model: Found costs of 1 for: %V256 = shufflevector <16 x half> %src256, <16 x half> undef, <16 x i32> zeroinitializer
10+
; CHECK-NEXT: Cost Model: Found costs of 1 for: %V512 = shufflevector <32 x half> %src512, <32 x half> undef, <32 x i32> zeroinitializer
11+
; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
1212
;
1313
%V32 = shufflevector <2 x half> %src32, <2 x half> undef, <2 x i32> zeroinitializer
1414
%V64 = shufflevector <4 x half> %src64, <4 x half> undef, <4 x i32> zeroinitializer

0 commit comments

Comments
 (0)