Richard Henderson schrieb: > On 06/20/2011 07:20 AM, Georg-Johann Lay wrote: >> A libcall could be added in TARGET_INIT_LIBCALLS, so a new hook is not >> needed. All that's needed is that optabs tests for presence of such >> an entry and prefers it over inline expansion (and prefers insn over >> libcall). It appears that + and - are assumed to be cheaps or inline >> expansion is always cheap. > > No, we assume that if the inline pattern is present and enabled, it > is to be preferred over the libcall. All you have to do to get > __adddi3 called is remove/disable the adddi3 pattern.
There is no adddi3 in avr backend to disable. -- Johann