def test_cmp_gtu_and_jump_p1_reg_not_hint(hexagon):
    pc = hexagon.registers.pc
    hexagon.memory.controllers[0].mem.write(0, 4, b'\xfe\xf8\x70\x15')
    hexagon.registers.general[0] = 0xfffffffe
    hexagon.registers.general[16] = 2
    hexagon.cycle()
    assert hexagon.registers.predicate[1] == 0xff
    assert hexagon.registers.npc == pc + 4


def test_cmp_gtu_and_jump_p1_reg_not_hint_false(hexagon):
    pc = hexagon.registers.pc
    hexagon.memory.controllers[0].mem.write(0, 4, b'\xfe\xf8\x70\x15')
    hexagon.registers.general[0] = 2
    hexagon.registers.general[16] = 0xfffffffe
    hexagon.cycle()
    assert hexagon.registers.predicate[1] == 0
    assert hexagon.registers.npc == pc - 4
