Skip to content

Commit 054b700

Browse files
committed
fix naming in tests
1 parent 7a3109d commit 054b700

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

mlir/test/Dialect/Vector/linearize.mlir

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -322,64 +322,64 @@ func.func @test_vector_extract_scalar() {
322322
// -----
323323

324324
// ALL-LABEL: test_vector_bitcast
325-
// ALL-SAME: %[[ORIG_ARG:.*]]: vector<4x4xf32>
325+
// ALL-SAME: %[[ARG_0:.*]]: vector<4x4xf32>
326326
func.func @test_vector_bitcast(%arg0: vector<4x4xf32>) -> vector<4x8xf16> {
327-
// DEFAULT: %[[DOWNCAST:.*]] = vector.shape_cast %[[ORIG_ARG]] : vector<4x4xf32> to vector<16xf32>
327+
// DEFAULT: %[[DOWNCAST:.*]] = vector.shape_cast %[[ARG_0]] : vector<4x4xf32> to vector<16xf32>
328328
// DEFAULT: %[[BITCAST:.*]] = vector.bitcast %[[DOWNCAST]] : vector<16xf32> to vector<32xf16>
329329
// DEFAULT: %[[UPCAST:.*]] = vector.shape_cast %[[BITCAST]] : vector<32xf16> to vector<4x8xf16>
330330

331-
// BW-128: %[[UPCAST:.*]] = vector.bitcast %[[ORIG_ARG]] : vector<4x4xf32> to vector<4x8xf16>
332-
// BW-0: %[[BITCAST:.*]] = vector.bitcast %[[ORIG_ARG]] : vector<4x4xf32> to vector<4x8xf16>
331+
// BW-128: %[[UPCAST:.*]] = vector.bitcast %[[ARG_0]] : vector<4x4xf32> to vector<4x8xf16>
332+
// BW-0: %[[BITCAST:.*]] = vector.bitcast %[[ARG_0]] : vector<4x4xf32> to vector<4x8xf16>
333333
%1 = vector.bitcast %arg0 : vector<4x4xf32> to vector<4x8xf16>
334334
return %1 : vector<4x8xf16>
335335
}
336336

337337
// -----
338338

339339
// ALL-LABEL: test_vector_bitcast
340-
// ALL-SAME: %[[ORIG_ARG:.*]]: vector<4x2xf32>
340+
// ALL-SAME: %[[ARG_0:.*]]: vector<4x2xf32>
341341
func.func @test_vector_bitcast(%arg0: vector<4x2xf32>) -> vector<4x4xf16> {
342-
// DEFAULT: %[[DOWNCAST:.*]] = vector.shape_cast %[[ORIG_ARG]] : vector<4x2xf32> to vector<8xf32>
342+
// DEFAULT: %[[DOWNCAST:.*]] = vector.shape_cast %[[ARG_0]] : vector<4x2xf32> to vector<8xf32>
343343
// DEFAULT: %[[BITCAST:.*]] = vector.bitcast %[[DOWNCAST]] : vector<8xf32> to vector<16xf16>
344344
// DEFAULT: %[[UPCAST:.*]] = vector.shape_cast %[[BITCAST]] : vector<16xf16> to vector<4x4xf16>
345-
// BW-128: %[[DOWNCAST:.*]] = vector.shape_cast %[[ORIG_ARG]] : vector<4x2xf32> to vector<8xf32>
345+
// BW-128: %[[DOWNCAST:.*]] = vector.shape_cast %[[ARG_0]] : vector<4x2xf32> to vector<8xf32>
346346
// BW-128: %[[BITCAST:.*]] = vector.bitcast %[[DOWNCAST]] : vector<8xf32> to vector<16xf16>
347347
// BW-128: %[[UPCAST:.*]] = vector.shape_cast %[[BITCAST]] : vector<16xf16> to vector<4x4xf16>
348348

349-
// BW-0: %[[BITCAST:.*]] = vector.bitcast %[[ORIG_ARG]] : vector<4x2xf32> to vector<4x4xf16>
349+
// BW-0: %[[BITCAST:.*]] = vector.bitcast %[[ARG_0]] : vector<4x2xf32> to vector<4x4xf16>
350350
%1 = vector.bitcast %arg0 : vector<4x2xf32> to vector<4x4xf16>
351351
return %1 : vector<4x4xf16>
352352
}
353353

354354
// -----
355355

356356
// ALL-LABEL: test_vector_bitcast
357-
// ALL-SAME: %[[ORIG_ARG:.*]]: vector<4x[2]xf32>
357+
// ALL-SAME: %[[ARG_0:.*]]: vector<4x[2]xf32>
358358
func.func @test_vector_bitcast(%arg0: vector<4x[2]xf32>) -> vector<4x[4]xf16> {
359-
// DEFAULT: %[[DOWNCAST:.*]] = vector.shape_cast %[[ORIG_ARG]] : vector<4x[2]xf32> to vector<[8]xf32>
359+
// DEFAULT: %[[DOWNCAST:.*]] = vector.shape_cast %[[ARG_0]] : vector<4x[2]xf32> to vector<[8]xf32>
360360
// DEFAULT: %[[BITCAST:.*]] = vector.bitcast %[[DOWNCAST]] : vector<[8]xf32> to vector<[16]xf16>
361361
// DEFAULT: %[[UPCAST:.*]] = vector.shape_cast %[[BITCAST]] : vector<[16]xf16> to vector<4x[4]xf16>
362-
// BW-128: %[[DOWNCAST:.*]] = vector.shape_cast %[[ORIG_ARG]] : vector<4x[2]xf32> to vector<[8]xf32>
362+
// BW-128: %[[DOWNCAST:.*]] = vector.shape_cast %[[ARG_0]] : vector<4x[2]xf32> to vector<[8]xf32>
363363
// BW-128: %[[BITCAST:.*]] = vector.bitcast %[[DOWNCAST]] : vector<[8]xf32> to vector<[16]xf16>
364364
// BW-128: %[[UPCAST:.*]] = vector.shape_cast %[[BITCAST]] : vector<[16]xf16> to vector<4x[4]xf16>
365365

366-
// BW-0: %[[BITCAST:.*]] = vector.bitcast %[[ORIG_ARG]] : vector<4x[2]xf32> to vector<4x[4]xf16>
366+
// BW-0: %[[BITCAST:.*]] = vector.bitcast %[[ARG_0]] : vector<4x[2]xf32> to vector<4x[4]xf16>
367367
%1 = vector.bitcast %arg0 : vector<4x[2]xf32> to vector<4x[4]xf16>
368368
return %1 : vector<4x[4]xf16>
369369
}
370370

371371
// -----
372372
// ALL-LABEL: test_vector_bitcast
373-
// ALL-SAME: %[[ORIG_ARG:.*]]: vector<[4]x2xf32>
373+
// ALL-SAME: %[[ARG_0:.*]]: vector<[4]x2xf32>
374374
func.func @test_vector_bitcast(%arg0: vector<[4]x2xf32>) -> vector<[4]x4xf16> {
375-
// DEFAULT: %[[DOWNCAST:.*]] = vector.shape_cast %[[ORIG_ARG]] : vector<[4]x2xf32> to vector<[8]xf32>
375+
// DEFAULT: %[[DOWNCAST:.*]] = vector.shape_cast %[[ARG_0]] : vector<[4]x2xf32> to vector<[8]xf32>
376376
// DEFAULT: %[[BITCAST:.*]] = vector.bitcast %[[DOWNCAST]] : vector<[8]xf32> to vector<[16]xf16>
377377
// DEFAULT: %[[UPCAST:.*]] = vector.shape_cast %[[BITCAST]] : vector<[16]xf16> to vector<[4]x4xf16>
378-
// BW-128: %[[DOWNCAST:.*]] = vector.shape_cast %[[ORIG_ARG]] : vector<[4]x2xf32> to vector<[8]xf32>
378+
// BW-128: %[[DOWNCAST:.*]] = vector.shape_cast %[[ARG_0]] : vector<[4]x2xf32> to vector<[8]xf32>
379379
// BW-128: %[[BITCAST:.*]] = vector.bitcast %[[DOWNCAST]] : vector<[8]xf32> to vector<[16]xf16>
380380
// BW-128: %[[UPCAST:.*]] = vector.shape_cast %[[BITCAST]] : vector<[16]xf16> to vector<[4]x4xf16>
381381

382-
// BW-0: %[[BITCAST:.*]] = vector.bitcast %[[ORIG_ARG]] : vector<[4]x2xf32> to vector<[4]x4xf16>
382+
// BW-0: %[[BITCAST:.*]] = vector.bitcast %[[ARG_0]] : vector<[4]x2xf32> to vector<[4]x4xf16>
383383
%1 = vector.bitcast %arg0 : vector<[4]x2xf32> to vector<[4]x4xf16>
384384
return %1 : vector<[4]x4xf16>
385385
}

0 commit comments

Comments
 (0)