This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [mn10300] return-in-a0-d0 ABI helper


On Fri, Sep 09, 2005 at 06:29:05PM -0400, DJ Delorie wrote:
> +(define_insn "epilogue_copy_a0d0"
> +  [(unspec_volatile [(const_int 0)] UNSPEC_A0D0)]
> +  ""
> +  "mov a0,d0 # -mreturn-pointer-on-d0"
> +  )

There are two other ways to attack this.  

(1) Use EPILOGUE_USES to force d0 live at the end of the function,
    and emit the copy by hand.

(2) Make FUNCTION_VALUE return a PARALLEL that copies the data into
    both registers.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]