This is the mail archive of the gcc@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: generate assembly mnemonic depending the resource allocation


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



      


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