Convert compare instructions from 'set' to 'cmp'