This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: generate assembly mnemonic depending the resource allocation
- From: Ian Lance Taylor <iant at google dot com>
- To: aturjan at yahoo dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 03 Dec 2008 08:53:26 -0800
- Subject: Re: generate assembly mnemonic depending the resource allocation
- References: <63109.50724.qm@web62405.mail.re1.yahoo.com>
Alex Turjan <aturjan@yahoo.com> writes:
> I use as atribute of one of the instructions the following define_insn_reservation:
> (define_insn_reservation "vmove" 1 "vector_type" "vmove") "c_valu_1|c_vlsu_1")
>
> As you can see vmove has two alternative reservation : c_valu_1 or c_vlsu_1, where c_valu_1 is defined as follows:
> (define_reservation "c_valu_1" "nothing, r_valu_rp, nothing, nothing, nothing, nothing")
>
> and c_vlsu_1:
> (define_reservation "c_vlsu_1" "nothing, r_vlsu, nothing, nothing, nothing, nothing")
>
>
> Having an RTX after sched2, how can I decide which of the two alternatives (c_valu_1 or c_vlsu_1) the scheduler has selected?
As far as I know, you can not.
Instead, you have to track this separately yourself.
Ian