Update CMP instruction implementation