[Bug middle-end/54183] Generate __udivmoddi4 instead of __udivdi3 plus __umoddi3

jimis at gmx dot net gcc-bugzilla@gcc.gnu.org
Fri Mar 16 23:48:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54183

--- Comment #4 from jimis <jimis at gmx dot net> ---
Indeed, as showcased by this example:

https://godbolt.org/g/nsSTHG

The function calls __udivmoddi4, like you said. However, the call is inlined in
main, but there we see separate calls for __udivdi3 and __umoddi3. Is it
because in main the divisor is the same constant?

If so I can close this bug and monitor bug 84759.

Thanks!


More information about the Gcc-bugs mailing list