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: Alex Turjan <aturjan at yahoo dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 3 Dec 2008 08:33:02 -0800 (PST)
- Subject: Re: generate assembly mnemonic depending the resource allocation
- Reply-to: aturjan at yahoo dot com
Dear Ian,
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?
thanks for your help!
Alex