In the attached test-case, a compare is missing, due to a misoptimization regarding removing redundant compare-insns; when using "addo" the compare is needed. Code generation for the test-case is different on 4.4, 4.5 and head; somewhat suboptimally using "adds", except that a compare-insn *would* be redundant and there is none).
-- Summary: Missing compare after add Product: gcc Version: 4.3.5 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: hp at gcc dot gnu dot org ReportedBy: hp at gcc dot gnu dot org GCC target triplet: crisv32-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44202