[Bug target/84759] Calculation of quotient and remainder with constant denominator uses __umoddi3+__udivdi3 instead of __udivmoddi4
prathamesh3492 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 8 12:39:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84759
prathamesh3492 at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |prathamesh3492 at gcc dot gnu.org
--- Comment #1 from prathamesh3492 at gcc dot gnu.org ---
In the former case, the divmod transform takes place and we emit call to
__udivmoddi4. However it does't trigger for divmodConst, because we avoid
handling constants in the transform since expand_divmod has specialized
expansions for few constants, which would otherwise have been missed. I suppose
this could be somewhat improved.
Thanks,
Prathamesh
More information about the Gcc-bugs
mailing list