https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54183
--- Comment #3 from Ruslan <b7.10110111 at gmail dot com> --- Ah, actually your problem is with a constant divisor. I reported it as bug 84759. If you change 10 to e.g. a function parameter, then you'll get __udivmoddi4.