This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: more stormy16 opcodes
> Date: Wed, 20 Nov 2002 14:17:01 -0500
> From: DJ Delorie <dj@redhat.com>
> Cc: gcc-patches@gcc.gnu.org
> X-OriginalArrivalTime: 20 Nov 2002 19:17:05.0567 (UTC) FILETIME=[69AE92F0:01C290C9]
>
>
> > The md file change is OK. Why were the builtins needed?
>
> They were requested by Sanyo. I would have just used inline asms.
>
> > GCC should be able to generate the patterns from plain C,
>
> Nope. It creates a call to __divsi3 if there isn't a divsi3 expander.
> I'm open to suggestions, though...
Oh, I see. There's no actual divsi3 pattern, so initial codegen makes
a libcall and then the libcall can't be optimised down into the
patterns that are available. The patch is OK, then.
--
- Geoffrey Keating <geoffk@geoffk.org>