self.optimize_loop(ops, expected)

# This the sequence of resoperations that is generated for a Python

- # app-level int % int, when the modulus is constant it should be

- # optimized to a single CPU instruction.

- # i2 = int_rshift(i1, 63)

- # self.optimize_loop(ops, expected)

+ # app-level int % int. When the modulus is constant and when i0

+ # is known non-negative it should be optimized to a single int_mod.

+ i2 = int_rshift(i1, 63)

+ py.test.skip("in-progress")

+ self.optimize_loop(ops, expected)

+ # Also, 'n % power-of-two' can be turned into int_and(),

+ # but that's a bit harder to detect here because it turns into

+ # several operations, and of course it is wrong to just turn

+ # int_mod(i0, 16) into int_and(i0, 15).

+ i2 = int_rshift(i1, 63)

+ self.optimize_loop(ops, expected)

class TestLLtype(BaseTestOptimizeBasic, LLtypeMixin):