sparc: fix unsigned compares and cleanup cmp attributes