cmp replacement for test instruction