Adds necessary cmp instructions