@@ -209,9 +209,54 @@ llvm.func @matrix_2Dblockload(%ptr : !llvm.ptr, %base_width : i32, %base_height
209
209
210
210
// -----
211
211
212
+ llvm.func @matrix_2Dblockload (%ptr : !llvm.ptr , %base_height : i32 , %base_pitch : i32 , %x : i32 , %y : i32 ) {
213
+ %base_width = llvm.mlir.constant (16777216 : i32 ) : i32
214
+ // expected-error @+1 {{'triton_gen.2Dblockload' op 2nd operand (base width) should be <= 24 bits}}
215
+ %0 = triton_gen.2Dblockload %ptr , %base_width , %base_height , %base_pitch , %x , %y {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , transpose =false , vnni_transform =false , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 ) -> vector <8 xi16 >
216
+ llvm.return
217
+ }
218
+
219
+ // -----
220
+
221
+ llvm.func @matrix_2Dblockload (%ptr : !llvm.ptr , %base_height : i32 , %base_pitch : i32 , %x : i32 , %y : i32 ) {
222
+ %base_width = llvm.mlir.constant (0 : i32 ) : i32
223
+ // expected-error @+1 {{'triton_gen.2Dblockload' op 2nd operand (base width) should be >= 64}}
224
+ %0 = triton_gen.2Dblockload %ptr , %base_width , %base_height , %base_pitch , %x , %y {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , transpose =false , vnni_transform =false , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 ) -> vector <8 xi16 >
225
+ llvm.return
226
+ }
227
+
228
+ // -----
229
+
230
+ llvm.func @matrix_2Dblockload (%ptr : !llvm.ptr , %base_width : i32 , %base_pitch : i32 , %x : i32 , %y : i32 ) {
231
+ %base_height = llvm.mlir.constant (16777216 : i32 ) : i32
232
+ // expected-error @+1 {{'triton_gen.2Dblockload' op 3rd operand (base height) should be <= 24 bits}}
233
+ %0 = triton_gen.2Dblockload %ptr , %base_width , %base_height , %base_pitch , %x , %y {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , transpose =false , vnni_transform =false , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 ) -> vector <8 xi16 >
234
+ llvm.return
235
+ }
236
+
237
+ // -----
238
+
239
+ llvm.func @matrix_2Dblockload (%ptr : !llvm.ptr , %base_width : i32 , %base_height : i32 , %x : i32 , %y : i32 ) {
240
+ %base_pitch = llvm.mlir.constant (16777216 : i32 ) : i32
241
+ // expected-error @+1 {{'triton_gen.2Dblockload' op 4th operand (base pitch) should be <= 24 bits}}
242
+ %0 = triton_gen.2Dblockload %ptr , %base_width , %base_height , %base_pitch , %x , %y {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , transpose =false , vnni_transform =false , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 ) -> vector <8 xi16 >
243
+ llvm.return
244
+ }
245
+
246
+ // -----
247
+
248
+ llvm.func @matrix_2Dblockload (%ptr : !llvm.ptr , %base_width : i32 , %base_height : i32 , %x : i32 , %y : i32 ) {
249
+ %base_pitch = llvm.mlir.constant (0 : i32 ) : i32
250
+ // expected-error @+1 {{'triton_gen.2Dblockload' op 4th operand (base pitch) should be >= 64}}
251
+ %0 = triton_gen.2Dblockload %ptr , %base_width , %base_height , %base_pitch , %x , %y {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , transpose =false , vnni_transform =false , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 ) -> vector <8 xi16 >
252
+ llvm.return
253
+ }
254
+
255
+ // -----
256
+
212
257
llvm.func @matrix_2Dblockload (%ptr : !llvm.ptr , %base_height : i32 , %x : i32 , %y : i32 ) {
213
- %base_width = llvm.mlir.constant (4 : i32 ) : i32
214
- %base_pitch = llvm.mlir.constant (2 : i32 ) : i32
258
+ %base_width = llvm.mlir.constant (68 : i32 ) : i32
259
+ %base_pitch = llvm.mlir.constant (64 : i32 ) : i32
215
260
// expected-error @+1 {{'triton_gen.2Dblockload' op 4th operand (base pitch) should be >= 2nd operand (base width)}}
216
261
%0 = triton_gen.2Dblockload %ptr , %base_width , %base_height , %base_pitch , %x , %y {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , transpose =false , vnni_transform =false , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 ) -> vector <8 xi16 >
217
262
llvm.return
@@ -273,11 +318,56 @@ llvm.func @matrix_2Dblockstore(%ptr : !llvm.ptr, %base_width : i32, %base_height
273
318
llvm.return
274
319
}
275
320
321
+
322
+ // -----
323
+
324
+ llvm.func @matrix_2Dblockstore (%ptr : !llvm.ptr , %base_height : i32 , %base_pitch : i32 , %x : i32 , %y : i32 , %stored_val : vector <8 xi8 >) {
325
+ %base_width = llvm.mlir.constant (16777216 : i32 ) : i32
326
+ // expected-error @+1 {{'triton_gen.2Dblockstore' op 2nd operand (base width) should be <= 24 bits}}
327
+ triton_gen.2Dblockstore %ptr , %base_width , %base_height , %base_pitch , %x , %y , %stored_val {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 , vector <8 xi8 >)
328
+ llvm.return
329
+ }
330
+
331
+ // -----
332
+
333
+ llvm.func @matrix_2Dblockstore (%ptr : !llvm.ptr , %base_height : i32 , %base_pitch : i32 , %x : i32 , %y : i32 , %stored_val : vector <8 xi8 >) {
334
+ %base_width = llvm.mlir.constant (0 : i32 ) : i32
335
+ // expected-error @+1 {{'triton_gen.2Dblockstore' op 2nd operand (base width) should be >= 64}}
336
+ triton_gen.2Dblockstore %ptr , %base_width , %base_height , %base_pitch , %x , %y , %stored_val {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 , vector <8 xi8 >)
337
+ llvm.return
338
+ }
339
+
340
+ // -----
341
+
342
+ llvm.func @matrix_2Dblockstore (%ptr : !llvm.ptr , %base_width : i32 , %base_pitch : i32 , %x : i32 , %y : i32 , %stored_val : vector <8 xi8 >) {
343
+ %base_height = llvm.mlir.constant (16777216 : i32 ) : i32
344
+ // expected-error @+1 {{'triton_gen.2Dblockstore' op 3rd operand (base height) should be <= 24 bits}}
345
+ triton_gen.2Dblockstore %ptr , %base_width , %base_height , %base_pitch , %x , %y , %stored_val {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 , vector <8 xi8 >)
346
+ llvm.return
347
+ }
348
+
349
+ // -----
350
+
351
+ llvm.func @matrix_2Dblockstore (%ptr : !llvm.ptr , %base_width : i32 , %base_height : i32 , %x : i32 , %y : i32 , %stored_val : vector <8 xi8 >) {
352
+ %base_pitch = llvm.mlir.constant (16777216 : i32 ) : i32
353
+ // expected-error @+1 {{'triton_gen.2Dblockstore' op 4th operand (base pitch) should be <= 24 bits}}
354
+ triton_gen.2Dblockstore %ptr , %base_width , %base_height , %base_pitch , %x , %y , %stored_val {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 , vector <8 xi8 >)
355
+ llvm.return
356
+ }
357
+
358
+ // -----
359
+
360
+ llvm.func @matrix_2Dblockstore (%ptr : !llvm.ptr , %base_width : i32 , %base_height : i32 , %x : i32 , %y : i32 , %stored_val : vector <8 xi8 >) {
361
+ %base_pitch = llvm.mlir.constant (0 : i32 ) : i32
362
+ // expected-error @+1 {{'triton_gen.2Dblockstore' op 4th operand (base pitch) should be >= 64}}
363
+ triton_gen.2Dblockstore %ptr , %base_width , %base_height , %base_pitch , %x , %y , %stored_val {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 , vector <8 xi8 >)
364
+ llvm.return
365
+ }
276
366
// -----
277
367
278
368
llvm.func @matrix_2Dblockstore (%ptr : !llvm.ptr , %base_height : i32 , %x : i32 , %y : i32 , %stored_val : vector <8 xi8 >) {
279
- %base_width = llvm.mlir.constant (4 : i32 ) : i32
280
- %base_pitch = llvm.mlir.constant (2 : i32 ) : i32
369
+ %base_width = llvm.mlir.constant (68 : i32 ) : i32
370
+ %base_pitch = llvm.mlir.constant (64 : i32 ) : i32
281
371
// expected-error @+1 {{'triton_gen.2Dblockstore' op 4th operand (base pitch) should be >= 2nd operand (base width)}}
282
372
triton_gen.2Dblockstore %ptr , %base_width , %base_height , %base_pitch , %x , %y , %stored_val {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 , vector <8 xi8 >)
283
373
llvm.return
@@ -325,9 +415,54 @@ llvm.func @matrix_2Dblockstore(%ptr : !llvm.ptr, %base_width : i32, %base_height
325
415
326
416
// -----
327
417
418
+ llvm.func @matrix_2Dblockprefetch (%ptr : !llvm.ptr , %base_height : i32 , %base_pitch : i32 , %x : i32 , %y : i32 ) {
419
+ %base_width = llvm.mlir.constant (16777216 : i32 ) : i32
420
+ // expected-error @+1 {{'triton_gen.2Dblockprefetch' op 2nd operand (base width) should be <= 24 bits}}
421
+ triton_gen.2Dblockprefetch %ptr , %base_width , %base_height , %base_pitch , %x , %y {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 )
422
+ llvm.return
423
+ }
424
+
425
+ // -----
426
+
427
+ llvm.func @matrix_2Dblockprefetch (%ptr : !llvm.ptr , %base_height : i32 , %base_pitch : i32 , %x : i32 , %y : i32 ) {
428
+ %base_width = llvm.mlir.constant (0 : i32 ) : i32
429
+ // expected-error @+1 {{'triton_gen.2Dblockprefetch' op 2nd operand (base width) should be >= 64}}
430
+ triton_gen.2Dblockprefetch %ptr , %base_width , %base_height , %base_pitch , %x , %y {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 )
431
+ llvm.return
432
+ }
433
+
434
+ // -----
435
+
436
+ llvm.func @matrix_2Dblockprefetch (%ptr : !llvm.ptr , %base_width : i32 , %base_pitch : i32 , %x : i32 , %y : i32 ) {
437
+ %base_height = llvm.mlir.constant (16777216 : i32 ) : i32
438
+ // expected-error @+1 {{'triton_gen.2Dblockprefetch' op 3rd operand (base height) should be <= 24 bits}}
439
+ triton_gen.2Dblockprefetch %ptr , %base_width , %base_height , %base_pitch , %x , %y {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 )
440
+ llvm.return
441
+ }
442
+
443
+ // -----
444
+
445
+ llvm.func @matrix_2Dblockprefetch (%ptr : !llvm.ptr , %base_width : i32 , %base_height : i32 , %x : i32 , %y : i32 ) {
446
+ %base_pitch = llvm.mlir.constant (16777216 : i32 ) : i32
447
+ // expected-error @+1 {{'triton_gen.2Dblockprefetch' op 4th operand (base pitch) should be <= 24 bits}}
448
+ triton_gen.2Dblockprefetch %ptr , %base_width , %base_height , %base_pitch , %x , %y {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 )
449
+ llvm.return
450
+ }
451
+
452
+ // -----
453
+
454
+ llvm.func @matrix_2Dblockprefetch (%ptr : !llvm.ptr , %base_width : i32 , %base_height : i32 , %x : i32 , %y : i32 ) {
455
+ %base_pitch = llvm.mlir.constant (0 : i32 ) : i32
456
+ // expected-error @+1 {{'triton_gen.2Dblockprefetch' op 4th operand (base pitch) should be >= 64}}
457
+ triton_gen.2Dblockprefetch %ptr , %base_width , %base_height , %base_pitch , %x , %y {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 )
458
+ llvm.return
459
+ }
460
+
461
+ // -----
462
+
328
463
llvm.func @matrix_2Dblockprefetch (%ptr : !llvm.ptr , %base_height : i32 , %x : i32 , %y : i32 ) {
329
- %base_width = llvm.mlir.constant (4 : i32 ) : i32
330
- %base_pitch = llvm.mlir.constant (2 : i32 ) : i32
464
+ %base_width = llvm.mlir.constant (68 : i32 ) : i32
465
+ %base_pitch = llvm.mlir.constant (64 : i32 ) : i32
331
466
// expected-error @+1 {{'triton_gen.2Dblockprefetch' op 4th operand (base pitch) should be >= 2nd operand (base width)}}
332
467
triton_gen.2Dblockprefetch %ptr , %base_width , %base_height , %base_pitch , %x , %y {elem_size_in_bits =8 , tile_width =32 , tile_height =8 , v_blocks =1 , cache_control =Default } : (!llvm.ptr , i32 , i32 , i32 , i32 , i32 )
333
468
llvm.return
0 commit comments