Right now now folding opportunities are taken for sparc builtin functions. This should be fixed by implementing sparc_fold_builtin.
-- Summary: SPARC builtins should be folded if possible Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: phython at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: sparc*-- GCC host triplet: sparc*-- GCC target triplet: sparc*-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20666