This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ARCH_rtx_costs
> /* Return the right cost to give to an operation
> to make the cost of the corresponding register-to-register instruction
> N times that of a fast register-to-register instruction. */
> #define COSTS_N_INSNS(N) ((N) * 4)
>
> so COSTS_N_INSNS(1) is the cost of a reg-reg move instruction, and
> COSTS_N_INSNS(X) is the cost of X is relative to that.
I see, I should have looked at the source before, sorry.
Thank you for your help.
- Shinpei