[PATCH 2/2, i386]: Implement TARGET_EXPAND_DIVMOD_LIBFUNC

Uros Bizjak ubizjak@gmail.com
Thu Nov 3 12:47:00 GMT 2016


On Thu, Nov 3, 2016 at 1:18 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
>> libfunc is already implemented for all targets to use, there is also:
>>
>> OPTAB_NC(sdivmod_optab, "divmod$a4", UNKNOWN)
>> OPTAB_NC(udivmod_optab, "udivmod$a4", UNKNOWN)
>>
>> in optabs.def that can probably be changed  for generic expansion.
>
> So what's the purpose of ix86_init_libfuncs if the libfuncs are already there?

libfunc, as in "__{,u}divmod{di,ti}4 library function" is already
implemented in libgcc. But the enablement of this function inside the
compiler has to be performed by each target.

Uros.



More information about the Gcc-patches mailing list