This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/54183] Generate __udivmoddi4 instead of __udivdi3 plus __umoddi3
- From: "b7.10110111 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 17 Mar 2018 06:35:06 +0000
- Subject: [Bug middle-end/54183] Generate __udivmoddi4 instead of __udivdi3 plus __umoddi3
- Auto-submitted: auto-generated
- References: <bug-54183-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54183
--- Comment #5 from Ruslan <b7.10110111 at gmail dot com> ---
Yes, this is exactly the problem: the generic case is optimized while the
special case, where the divisor is a compile-time constant, isn't.