@triton.jit
def bounds_mask(offs_m, offs_n, M, N, EVEN_M: tl.constexpr, EVEN_N: tl.
    constexpr):
    if EVEN_M & EVEN_N:
        val = 0
    else:
        mask = make_bounds(offs_m, offs_n, M, N, EVEN_M, EVEN_N)
        val = tl.where(mask, 0, float('-inf'))
    return val
