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


DJ Delorie <dj@redhat.com> writes:

> +  rv = gen_rtx_PARALLEL (mode, rtvec_alloc (2));
> +  XVECEXP (rv, 0, 0)
> +    = gen_rtx_EXPR_LIST (VOIDmode,
> +			 gen_rtx_REG (mode, FIRST_ADDRESS_REGNUM),
> +			 GEN_INT (0));
> +  
> +  XVECEXP (rv, 0, 1)
> +    = gen_rtx_EXPR_LIST (VOIDmode,
> +			 gen_rtx_REG (mode, FIRST_DATA_REGNUM),
> +			 GEN_INT (0));

You do need real modes for the parallel elements.  Look at
emit_group_store, which is what should wind up handling this case.

Ian


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