Skip to content

Commit 3ab763b

Browse files
committed
add one last test
1 parent 233c887 commit 3ab763b

File tree

1 file changed

+14
-2
lines changed
  • llvm/test/Transforms/LowerMatrixIntrinsics

1 file changed

+14
-2
lines changed

llvm/test/Transforms/LowerMatrixIntrinsics/flatten.ll

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,19 @@ entry:
4343
; CHECK-NEXT: because we do not have a shape-aware lowering for its user:
4444
; CHECK-NEXT: %{{.*}} = shufflevector <6 x double> %{{.*}}, <6 x double> poison, <2 x i32> <i32 4, i32 5>
4545

46-
; CHECK: flattening a 4x3 matrix:
46+
; CHECK-LABEL: flattening a 4x3 matrix:
4747
; CHECK-NEXT: %{{.*}} = call <12 x double> @llvm.matrix.multiply.v12f64.v8f64.v6f64(<8 x double> %{{.*}}, <6 x double> %{{.*}}, i32 4, i32 2, i32 3)
4848
; CHECK-NEXT: because we do not have a shape-aware lowering for its user:
49-
; CHECK-NEXT: %{{.*}} = shufflevector <12 x double> %{{.*}}, <12 x double> poison, <4 x i32> <i32 8, i32 9, i32 10, i32 11>
49+
; CHECK-NEXT: %{{.*}} = shufflevector <12 x double> %{{.*}}, <12 x double> poison, <4 x i32> <i32 8, i32 9, i32 10, i32 11>
50+
51+
52+
define void @redundant_transpose_of_shuffle(<4 x float> %m, ptr %dst) {
53+
entry:
54+
%shuffle = shufflevector <4 x float> %m, <4 x float> zeroinitializer, <4 x i32> zeroinitializer
55+
%t = tail call <4 x float> @llvm.matrix.transpose.v3f32(<4 x float> %shuffle, i32 1, i32 4)
56+
store <4 x float> %t, ptr %dst, align 4
57+
ret void
58+
}
59+
60+
; CHECK-LABEL: splitting a 4x1 matrix with 1 shuffles beacuse we do not have a shape-aware lowering for its def:
61+
; CHECK-NEXT: %{{.*}} = shufflevector <4 x float> %{{.*}}, <4 x float> zeroinitializer, <4 x i32> zeroinitializer

0 commit comments

Comments
 (0)