comparison: add support for COMPARE_LIMIT