Skip to content

Commit 95a0c70

Browse files
committed
clean
1 parent c153413 commit 95a0c70

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

mlir/test/Dialect/Vector/canonicalize.mlir

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,8 @@ func.func @bitcast_folding(%I1: vector<4x8xf32>, %I2: vector<2xi32>) -> (vector<
11211121
return %0, %2 : vector<4x8xf32>, vector<2xi32>
11221122
}
11231123

1124+
// -----
1125+
11241126
// CHECK-LABEL: func @bitcast_f16_to_f32
11251127
// bit pattern: 0x40004000
11261128
// CHECK-DAG: %[[CST1:.+]] = arith.constant dense<2.00390625> : vector<4xf32>
@@ -1135,6 +1137,8 @@ func.func @bitcast_f16_to_f32() -> (vector<4xf32>, vector<4xf32>) {
11351137
return %cast0, %cast1: vector<4xf32>, vector<4xf32>
11361138
}
11371139

1140+
// -----
1141+
11381142
// CHECK-LABEL: func @bitcast_i8_to_i32
11391143
// bit pattern: 0xA0A0A0A0
11401144
// CHECK-DAG: %[[CST1:.+]] = arith.constant dense<-1600085856> : vector<4xi32>
@@ -1732,6 +1736,7 @@ func.func @vector_multi_reduction_unit_dimensions(%source: vector<5x1x4x1x20xf32
17321736
}
17331737

17341738
// -----
1739+
17351740
// CHECK-LABEL: func.func @vector_multi_reduction_scalable(
17361741
// CHECK-SAME: %[[VAL_0:.*]]: vector<1x[4]x1xf32>,
17371742
// CHECK-SAME: %[[VAL_1:.*]]: vector<1x[4]xf32>,
@@ -2273,6 +2278,8 @@ func.func @transpose_splat_constant() -> vector<8x4xf32> {
22732278
return %0 : vector<8x4xf32>
22742279
}
22752280

2281+
// -----
2282+
22762283
// CHECK-LABEL: func @transpose_splat2(
22772284
// CHECK-SAME: %[[VAL_0:.*]]: f32) -> vector<3x4xf32> {
22782285
// CHECK: %[[VAL_1:.*]] = vector.splat %[[VAL_0]] : vector<3x4xf32>
@@ -2286,6 +2293,17 @@ func.func @transpose_splat2(%arg : f32) -> vector<3x4xf32> {
22862293

22872294
// -----
22882295

2296+
// CHECK-LABEL: transpose_poison
2297+
// CHECK: %[[POISON:.*]] = ub.poison : vector<4x6xi8>
2298+
// CHECK: return %[[POISON]] : vector<4x6xi8>
2299+
func.func @transpose_poison() -> vector<4x6xi8> {
2300+
%poison = ub.poison : vector<6x4xi8>
2301+
%transpose = vector.transpose %poison, [1, 0] : vector<6x4xi8> to vector<4x6xi8>
2302+
return %transpose : vector<4x6xi8>
2303+
}
2304+
2305+
// -----
2306+
22892307
// CHECK-LABEL: func.func @insert_1d_constant
22902308
// CHECK-DAG: %[[ACST:.*]] = arith.constant dense<[9, 1, 2]> : vector<3xi32>
22912309
// CHECK-DAG: %[[BCST:.*]] = arith.constant dense<[0, 9, 2]> : vector<3xi32>

0 commit comments

Comments
 (0)