|
| 1 | +// RUN: ptoas --print-ir-after-all --print-ir-after-all-func-filter=tilebuf_asm --pto-level=level3 %s 2>&1 1>/dev/null | FileCheck %s |
| 2 | + |
| 3 | +module { |
| 4 | + func.func @tilebuf_asm( |
| 5 | + %arg0: !pto.tile_buf<loc=vec, dtype=f32, rows=1, cols=16, v_row=1, v_col=16, |
| 6 | + blayout=row_major, slayout=none_box, fractal=512, pad=0>, |
| 7 | + %arg1: !pto.tile_buf<vec, 16x128xf32, valid=16x1, blayout=col_major, |
| 8 | + slayout=row_major, fractal=1024, pad=2>) { |
| 9 | + return |
| 10 | + } |
| 11 | + |
| 12 | + func.func @tilebuf_asm_dynamic( |
| 13 | + %arg0: !pto.tile_buf<loc=vec, dtype=f16, rows=32, cols=32, v_row=?, v_col=?, |
| 14 | + blayout=row_major, slayout=none_box, fractal=512, pad=0>, |
| 15 | + %arg1: !pto.tile_buf<acc, 16x16xbf16, valid=?x8, blayout=col_major>) { |
| 16 | + return |
| 17 | + } |
| 18 | +} |
| 19 | + |
| 20 | +// CHECK: func.func @tilebuf_asm |
| 21 | +// CHECK: !pto.tile_buf<vec, 1x16xf32> |
| 22 | +// CHECK: !pto.tile_buf<vec, 16x128xf32, valid=16x1, blayout=col_major, slayout=row_major, fractal=1024, pad=2> |
| 23 | + |
| 24 | +// CHECK: func.func @tilebuf_asm_dynamic |
| 25 | +// CHECK: !pto.tile_buf<vec, 32x32xf16, valid=?x?> |
| 26 | +// CHECK: !pto.tile_buf<acc, 16x16xbf16, valid=?x8, blayout=col_major> |
0 commit comments