Re: generate assembly mnemonic depending the resource allocation

2008-12-03 Thread Ian Lance Taylor
Alex Turjan <[EMAIL PROTECTED]> 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, > wher

Re: generate assembly mnemonic depending the resource allocation

2008-12-03 Thread Alex Turjan
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

Re: generate assembly mnemonic depending the resource allocation

2008-12-03 Thread Ian Lance Taylor
Alex Turjan <[EMAIL PROTECTED]> writes: > Im now looking the in gcc mainline to find when an instruction (with > alternative resource utilizations) is issued which of the resources > are used. This is described using define_insn_reservation and so forth in the MD file. This is well documented in

Re: generate assembly mnemonic depending the resource allocation

2008-12-03 Thread Alex Turjan
> Keep > track of the instruction slot, and set some global variable > in that macro. I see what you mean but for my target architecture the slots are not identical in sense that they are claiming totaly different resources. This means that in order to decide at a certain cycle which mnemonic

Re: generate assembly mnemonic depending the resource allocation

2008-12-03 Thread Ian Lance Taylor
Alex Turjan <[EMAIL PROTECTED]> writes: > Thanks for answer but Im not able to make it work; I dont know how > to extract the specific slot-usage (out of a number of an > alternatives) out of the RTL insn description. > Is there some get_attr_ for this? You would have to invent the attribute. T

RE: generate assembly mnemonic depending the resource allocation

2008-12-03 Thread Alex Turjan
gfeng Mei <[EMAIL PROTECTED]> > Subject: RE: generate assembly mnemonic depending the resource allocation > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, "gcc@gcc.gnu.org" > > Date: Wednesday, December 3, 2008, 3:00 PM > You can use C sta

RE: generate assembly mnemonic depending the resource allocation

2008-12-03 Thread Bingfeng Mei
} [(set_attr "type" "alu") (set_attr "mode" "SI") (set_attr "length" "1")]) > -Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Alex Turjan > Sent: 03 December 2008 10:34

generate assembly mnemonic depending the resource allocation

2008-12-03 Thread Alex Turjan
Hi all, Im building a gcc target for a vliw machine that can execute the same instruction on different resources (slots) and depending on which resources are allocate the instruction must have a different mnemonic. Is it possible in gcc to have for the same define_insn constraints (depending on