remove duplication in ICmp operations