Skip to content

Commit 24b0739

Browse files
committed
Use CHECKS
1 parent 203ec82 commit 24b0739

File tree

1 file changed

+12
-26
lines changed

1 file changed

+12
-26
lines changed

mlir/test/Dialect/Vector/linearize.mlir

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -347,32 +347,18 @@ func.func @linearize_scalable_vector_splat(%arg0: i32) -> vector<4x[2]xi32> {
347347
}
348348

349349
// -----
350-
// ALL-LABEL: test_create_mask
351-
func.func @test_create_mask() -> vector<1x16xi1> {
352-
// DEFAULT: %[[C0:.*]] = arith.constant 0 : index
353-
// BW-128: %[[C0:.*]] = arith.constant 0 : index
354-
// DEFAULT: %[[C20:.*]] = arith.constant 20 : index
355-
// BW-128: %[[C20:.*]] = arith.constant 20 : index
356-
// DEFAULT: %[[C0_0:.*]] = arith.constant 0 : index
357-
// BW-128: %[[C0_0:.*]] = arith.constant 0 : index
358-
// DEFAULT: %[[CMP:.*]] = arith.cmpi sle, %[[C0]], %[[C0_0]] : index
359-
// BW-128: %[[CMP:.*]] = arith.cmpi sle, %[[C0]], %[[C0_0]] : index
360-
// DEFAULT: %[[SPLAT:.*]] = vector.splat %[[CMP]] : vector<16xi1>
361-
// BW-128: %[[SPLAT:.*]] = vector.splat %[[CMP]] : vector<16xi1>
362-
// DEFAULT: %[[CST:.*]] = arith.constant dense<false> : vector<16xi1>
363-
// BW-128: %[[CST:.*]] = arith.constant dense<false> : vector<16xi1>
364-
// DEFAULT: %[[MASK_1D:.*]] = vector.create_mask %[[C20]] : vector<16xi1>
365-
// BW-128: %[[MASK_1D:.*]] = vector.create_mask %[[C20]] : vector<16xi1>
366-
// DEFAULT: %[[SELECT:.*]] = arith.select %[[SPLAT]], %[[CST]], %[[MASK_1D]] : vector<16xi1>, vector<16xi1>
367-
// BW-128: %[[SELECT:.*]] = arith.select %[[SPLAT]], %[[CST]], %[[MASK_1D]] : vector<16xi1>
368-
// DEFAULT: %[[CAST:.*]] = vector.shape_cast %[[SELECT]] : vector<16xi1> to vector<1x16xi1>
369-
// BW-128: %[[CAST:.*]] = vector.shape_cast %[[SELECT]] : vector<16xi1> to vector<1x16xi1>
370-
// DEFAULT: return %[[CAST]] : vector<1x16xi1>
371-
// BW-128: return %[[CAST]] : vector<1x16xi1>
372-
373-
// BW-0: %[[C0:.*]] = arith.constant 0 : index
374-
// BW-0: %[[C20:.*]] = arith.constant 20 : index
375-
// BW-0: %[[MASK:.*]] = vector.create_mask %[[C0]], %[[C20]] : vector<1x16xi1>
350+
// ALL-LABEL: linearize_create_mask
351+
func.func @linearize_create_mask() -> vector<1x16xi1> {
352+
// CHECK: %[[C0:.*]] = arith.constant 0 : index
353+
// CHECK: %[[C20:.*]] = arith.constant 20 : index
354+
// CHECK: %[[C0_0:.*]] = arith.constant 0 : index
355+
// CHECK: %[[CMP:.*]] = arith.cmpi sle, %[[C0]], %[[C0_0]] : index
356+
// CHECK: %[[SPLAT:.*]] = vector.splat %[[CMP]] : vector<16xi1>
357+
// CHECK: %[[CST:.*]] = arith.constant dense<false> : vector<16xi1>
358+
// CHECK: %[[MASK_1D:.*]] = vector.create_mask %[[C20]] : vector<16xi1>
359+
// CHECK: %[[SELECT:.*]] = arith.select %[[SPLAT]], %[[CST]], %[[MASK_1D]] : vector<16xi1>, vector<16xi1>
360+
// CHECK: %[[CAST:.*]] = vector.shape_cast %[[SELECT]] : vector<16xi1> to vector<1x16xi1>
361+
// CHECK: return %[[CAST]] : vector<1x16xi1>
376362
%c0 = arith.constant 0 : index
377363
%c20 = arith.constant 20 : index
378364
%0 = vector.create_mask %c0, %c20 : vector<1x16xi1>

0 commit comments

Comments
 (0)