You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llvm/test/Analysis/CostModel/AArch64/shuffle-other.ll
+47Lines changed: 47 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ define void @shuffle() {
10
10
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v11 = shufflevector <2 x i16> undef, <2 x i16> undef, <2 x i32> <i32 1, i32 0>
11
11
; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v12 = shufflevector <4 x i16> undef, <4 x i16> undef, <4 x i32> <i32 1, i32 3, i32 2, i32 0>
12
12
; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v13 = shufflevector <8 x i16> undef, <8 x i16> undef, <8 x i32> <i32 2, i32 3, i32 0, i32 1, i32 2, i32 3, i32 0, i32 1>
13
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %v10b = shufflevector <16 x i16> undef, <16 x i16> undef, <16 x i32> <i32 2, i32 3, i32 0, i32 1, i32 2, i32 3, i32 0, i32 1, i32 2, i32 3, i32 0, i32 1, i32 2, i32 3, i32 0, i32 1>
13
14
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v14 = shufflevector <2 x i32> undef, <2 x i32> undef, <2 x i32> <i32 1, i32 0>
14
15
; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v15 = shufflevector <4 x i32> undef, <4 x i32> undef, <4 x i32> <i32 1, i32 3, i32 2, i32 0>
15
16
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16 = shufflevector <2 x float> undef, <2 x float> undef, <2 x i32> <i32 1, i32 0>
@@ -24,6 +25,7 @@ define void @shuffle() {
24
25
%v11 = shufflevector <2 x i16> undef, <2 x i16> undef, <2 x i32> <i321, i320>
25
26
%v12 = shufflevector <4 x i16> undef, <4 x i16> undef, <4 x i32> <i321, i323, i322, i320>
26
27
%v13 = shufflevector <8 x i16> undef, <8 x i16> undef, <8 x i32> <i322, i323, i320, i321, i322, i323, i320, i321>
28
+
%v10b = shufflevector <16 x i16> undef, <16 x i16> undef, <16 x i32> <i322, i323, i320, i321, i322, i323, i320, i321, i322, i323, i320, i321, i322, i323, i320, i321>
27
29
28
30
%v14 = shufflevector <2 x i32> undef, <2 x i32> undef, <2 x i32> <i321, i320>
29
31
%v15 = shufflevector <4 x i32> undef, <4 x i32> undef, <4 x i32> <i321, i323, i322, i320>
; CHECK-NEXT: Cost Model: Found an estimated cost of 42 for instruction: %v16a = shufflevector <8 x i16> undef, <8 x i16> undef, <8 x i32> <i32 0, i32 8, i32 1, i32 9, i32 2, i32 10, i32 3, i32 11>
168
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v16b = shufflevector <8 x i16> undef, <8 x i16> undef, <8 x i32> <i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1>
169
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %v16c = shufflevector <16 x i16> undef, <16 x i16> undef, <16 x i32> <i32 0, i32 8, i32 1, i32 9, i32 2, i32 10, i32 3, i32 11, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1>
170
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 84 for instruction: %v16d = shufflevector <16 x i16> undef, <16 x i16> undef, <16 x i32> <i32 0, i32 16, i32 1, i32 17, i32 2, i32 18, i32 3, i32 19, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1>
171
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32a = shufflevector <4 x i32> undef, <4 x i32> undef, <4 x i32> <i32 2, i32 3, i32 0, i32 1>
172
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v32a4 = shufflevector <16 x i32> undef, <16 x i32> undef, <16 x i32> <i32 2, i32 3, i32 0, i32 1, i32 2, i32 3, i32 0, i32 1, i32 2, i32 3, i32 0, i32 1, i32 2, i32 3, i32 0, i32 1>
173
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 72 for instruction: %v32idrev = shufflevector <16 x i32> undef, <16 x i32> undef, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 15, i32 14, i32 13, i32 12, i32 16, i32 17, i32 18, i32 19, i32 31, i32 30, i32 29, i32 28>
174
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 72 for instruction: %v32many = shufflevector <16 x i32> undef, <16 x i32> undef, <16 x i32> <i32 0, i32 4, i32 8, i32 12, i32 16, i32 20, i32 24, i32 28, i32 2, i32 6, i32 10, i32 14, i32 18, i32 22, i32 26, i32 30>
175
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 72 for instruction: %v32many2 = shufflevector <16 x i32> undef, <16 x i32> undef, <16 x i32> <i32 1, i32 4, i32 8, i32 12, i32 17, i32 20, i32 24, i32 28, i32 2, i32 6, i32 11, i32 14, i32 18, i32 22, i32 27, i32 30>
176
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v323 = shufflevector <3 x i32> undef, <3 x i32> undef, <3 x i32> <i32 2, i32 3, i32 0>
177
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v64a = shufflevector <2 x i64> undef, <2 x i64> undef, <2 x i32> <i32 1, i32 1>
178
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v64b = shufflevector <2 x i64> undef, <2 x i64> undef, <2 x i32> zeroinitializer
179
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64ab = shufflevector <4 x i64> undef, <4 x i64> undef, <4 x i32> <i32 1, i32 1, i32 0, i32 0>
180
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v64d = shufflevector <4 x i64> undef, <4 x i64> undef, <4 x i32> <i32 1, i32 1, i32 4, i32 4>
181
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %f64a = shufflevector <2 x double> undef, <2 x double> undef, <2 x i32> <i32 1, i32 1>
182
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %f64b = shufflevector <2 x double> undef, <2 x double> undef, <2 x i32> zeroinitializer
183
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %f64ab = shufflevector <4 x double> undef, <4 x double> undef, <4 x i32> <i32 1, i32 1, i32 0, i32 0>
184
+
; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void
185
+
;
186
+
%v16a = shufflevector <8 x i16> undef, <8 x i16> undef, <8 x i32> <i320, i328, i321, i329, i322, i3210, i323, i3211>
187
+
%v16b = shufflevector <8 x i16> undef, <8 x i16> undef, <8 x i32> <i321, i321, i321, i321, i321, i321, i321, i321>
188
+
%v16c = shufflevector <16 x i16> undef, <16 x i16> undef, <16 x i32> <i320, i328, i321, i329, i322, i3210, i323, i3211, i321, i321, i321, i321, i321, i321, i321, i321>
189
+
%v16d = shufflevector <16 x i16> undef, <16 x i16> undef, <16 x i32> <i320, i3216, i321, i3217, i322, i3218, i323, i3219, i321, i321, i321, i321, i321, i321, i321, i321>
190
+
191
+
%v32a = shufflevector <4 x i32> undef, <4 x i32> undef, <4 x i32> <i322, i323, i320, i321>
192
+
%v32a4 = shufflevector <16 x i32> undef, <16 x i32> undef, <16 x i32> <i322, i323, i320, i321, i322, i323, i320, i321, i322, i323, i320, i321, i322, i323, i320, i321>
193
+
%v32idrev = shufflevector <16 x i32> undef, <16 x i32> undef, <16 x i32> <i320, i321, i322, i323, i3215, i3214, i3213, i3212, i3216, i3217, i3218, i3219, i3231, i3230, i3229, i3228>
194
+
%v32many = shufflevector <16 x i32> undef, <16 x i32> undef, <16 x i32> <i320, i324, i328, i3212, i3216, i3220, i3224, i3228, i322, i326, i3210, i3214, i3218, i3222, i3226, i3230>
195
+
%v32many2 = shufflevector <16 x i32> undef, <16 x i32> undef, <16 x i32> <i321, i324, i328, i3212, i3217, i3220, i3224, i3228, i322, i326, i3211, i3214, i3218, i3222, i3227, i3230>
196
+
%v323 = shufflevector <3 x i32> undef, <3 x i32> undef, <3 x i32> <i322, i323, i320>
197
+
198
+
%v64a = shufflevector <2 x i64> undef, <2 x i64> undef, <2 x i32> <i321, i321>
199
+
%v64b = shufflevector <2 x i64> undef, <2 x i64> undef, <2 x i32> <i320, i320>
200
+
%v64ab = shufflevector <4 x i64> undef, <4 x i64> undef, <4 x i32> <i321, i321, i320, i320>
201
+
%v64d = shufflevector <4 x i64> undef, <4 x i64> undef, <4 x i32> <i321, i321, i324, i324>
202
+
203
+
%f64a = shufflevector <2 x double> undef, <2 x double> undef, <2 x i32> <i321, i321>
204
+
%f64b = shufflevector <2 x double> undef, <2 x double> undef, <2 x i32> <i320, i320>
205
+
%f64ab = shufflevector <4 x double> undef, <4 x double> undef, <4 x i32> <i321, i321, i320, i320>
0 commit comments