Re: A question regarding bundling and NOPs insertion for VLIW architecture

2010-05-11 Thread Alexander Monakov
On Tue, 11 May 2010, Revital1 Eres wrote: > > Hello, > > I have a question regarding the process of bundling and NOPs insertion for > VLIW architecture > and I appreciate your answer: > > I am calling the second scheduler from the machine reorg pass; similar to >

A question regarding bundling and NOPs insertion for VLIW architecture

2010-05-11 Thread Revital1 Eres
Hello, I have a question regarding the process of bundling and NOPs insertion for VLIW architecture and I appreciate your answer: I am calling the second scheduler from the machine reorg pass; similar to what is done for IA64. I now want to handle the bundling and NOPs insertion for VLIW

Re: nops

2009-05-21 Thread Jamie Prescott
> From: Andrew Pinski > To: Jamie Prescott > Cc: Ian Lance Taylor ; gcc@gcc.gnu.org > Sent: Thursday, May 21, 2009 8:22:00 AM > Subject: Re: nops > > On Thu, May 21, 2009 at 8:13 AM, Jamie Prescott wrote: > > My target does not have anything special WRT alignment.

Re: nops

2009-05-21 Thread Andrew Pinski
On Thu, May 21, 2009 at 8:13 AM, Jamie Prescott wrote: > My target does not have anything special WRT alignment. I even set the > function > alignment to 8, and it still issues gen_nop(). > This seem to happen only with -O0, or at least I noticed it only under such > condition > so far. so it h

Re: nops

2009-05-21 Thread Jamie Prescott
- Original Message > From: Ian Lance Taylor > To: Jamie Prescott > Cc: gcc@gcc.gnu.org > Sent: Wednesday, May 20, 2009 9:50:50 PM > Subject: Re: nops > > Jamie Prescott writes: > > > Under which conditions GCC generates nops? > > It depends entir

Re: nops

2009-05-20 Thread Ian Lance Taylor
Jamie Prescott writes: > Under which conditions GCC generates nops? It depends entirely on the target. For many targets, gcc will never generate a nop instruction, except as a byproduct of alignment. > I noticed that with 4.4.0, gen_nop() is required, thing that wasn't with >

nops

2009-05-20 Thread Jamie Prescott
Under which conditions GCC generates nops? I noticed that with 4.4.0, gen_nop() is required, thing that wasn't with 4.3.3. Can I just define an empty insn for nop, of GCC requires a one-byte insn for its own alignment purposes? - Jamie

Re: STRIP NOPS Question

2008-10-15 Thread Ramana Radhakrishnan
\ > && (TYPE_MODE (TREE_TYPE (EXP))\ > == TYPE_MODE (TREE_TYPE (TREE_OPERAND (EXP, 0) \ >(EXP) = TREE_OPERAND (EXP, 0) > You are confusing macros at different times in the compiler . STRIP_NOPS happens at the tree level whilst scheduling happens on RTL . This isn&#

STRIP NOPS Question

2008-10-15 Thread Balaji V. Iyer
_OPERAND (EXP, 0) I am currently having a VLIW architecture and I want to put NOPs between the dependent instructions... So if I disable this #define, then will it do the trick? Can someone please explain to me ohw this works? Any help is greatly appreciated! Please CC me in your response

How to insert nops

2008-06-04 Thread Mohamed Shafi
Hello all, For the big endian 16bit target that i am porting to gcc 4.1.2 a nop is needed after a load instruction if the destination register of the load instruction is used as the source in the next instruction. So load R0, R3[2] add R2, R0 needs a nop inserted in between the instructions. I h

Re: NOPs inserting problem in GCC 4.1.x

2006-03-20 Thread Ian Lance Taylor
"Ling-hua Tseng" <[EMAIL PROTECTED]> writes: > Because I need to use the feature of `length' attribute (i.e., use > get_attr_length() in machine description), > I have to insert NOPs explicitly before performing the pass 58 > (shorten) such that the shorten pass

Re: NOPs inserting problem in GCC 4.1.x

2006-03-19 Thread Ling-hua Tseng
Sorry. The example of previous post was wrong. I just corrected it in this post. I'm porting GCC 4.1.1 to a VLIW processor. The processor couldn't solve any hazards itself so we should insert explicit NOPs after insn scheduling. I have implemented this functionality i

NOPs inserting problem in GCC 4.1.x

2006-03-19 Thread Ling-hua Tseng
I'm porting GCC 4.1.1 to a VLIW processor. The processor couldn't solve any hazards itself so we should insert explicit NOPs after insn scheduling. I have implemented this functionality in the hook `TARGET_MACHINE_DEPENDENT_REORG' (pass 52: mach). Then I noticed that the pass 5

Re: Explicit NOPs for a VLIW Machine

2005-10-12 Thread Jim Wilson
Balaji V. Iyer wrote: I am porting GCC 4.0.0 to a proprietary VLIW machine, and I want to insert NOPs explicitly wherever there is an Output/Flow/Anti dependencies. I am currently doing this insertion in the machine dependent reorganization phase. Is there a way to do this in machine

Explicit NOPs for a VLIW Machine

2005-10-10 Thread Balaji V. Iyer
Hi Everyone, I am porting GCC 4.0.0 to a proprietary VLIW machine, and I want to insert NOPs explicitly wherever there is an Output/Flow/Anti dependencies. I am currently doing this insertion in the machine dependent reorganization phase. Is there a way to do this in machine description file