1// RUN: mlir-opt %s -affine-loop-tile="tile-size=32" -split-input-file -verify-diagnostics
2
3// -----
4
5#ub = affine_map<(d0)[s0] -> (d0, s0)>
6func @non_hyperrect_loop() {
7  %N = constant 128 : index
8  // expected-error@+1 {{tiled code generation unimplemented for the non-hyperrectangular case}}
9  affine.for %i = 0 to %N {
10    affine.for %j = 0 to min #ub(%i)[%N] {
11      affine.yield
12    }
13  }
14  return
15}
16