This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: m68k call_value insn
On Mon, Sep 15, 2003 at 09:44:41PM +0200, Bernardo Innocenti wrote:
> Gunther Nikl wrote:
>
> >>I thought that pattern was meant to do something like this:
> >>
> >> jsr %1
> >> move.l %%d0,%0
> >
> > Except for pointers in m68k/ELF return values are always in %d0. This is
> > also true for floats and FPU present.
>
> I thought the m68k also returned pointers in %d0. It's definitely so on the
> Amiga.
Yes, on the Amiga return values are always in %d0. Other ABIs might do it
differently and indeed m68k/ELF (SYSV) returns pointers in %a0.
Gunther