> The same approach can also be used on other targets without hardware > divmod insn.
This should be made generic instead: can't we automatically create a divmod libfunc for double-word mode & define a default TARGET_EXPAND_DIVMOD_LIBFUNC? This would save the code duplication in the ~50 back-ends... -- Eric Botcazou