Re: How to implement the instruction in the back end

2008-05-14 Thread Ian Lance Taylor
"Mohamed Shafi" <[EMAIL PROTECTED]> writes: > But it would of great help if you could tell the C statment that > actually invoked this type of pattern .. Maybe wrt some back-end? This type of pattern is only generated by if-conversion. Look at cond_exec_process_insns in ifcvt.c. Ian

Re: How to implement the instruction in the back end

2008-05-13 Thread Mohamed Shafi
On Fri, May 9, 2008 at 12:03 AM, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > "Mohamed Shafi" <[EMAIL PROTECTED]> writes: > > > For the 16-bit target that i porting now to gcc 4.1.2 doesn't have any > > branch instructions. It only has jump instructions. For comparison > > operation it has this

Re: How to implement the instruction in the back end

2008-05-08 Thread Ian Lance Taylor
"Mohamed Shafi" <[EMAIL PROTECTED]> writes: > For the 16-bit target that i porting now to gcc 4.1.2 doesn't have any > branch instructions. It only has jump instructions. For comparison > operation it has this instruction: > > if cond Rx Ry > execute this insn > > So compare and branch is impleme

How to implement the instruction in the back end

2008-05-07 Thread Mohamed Shafi
Hello all, For the 16-bit target that i porting now to gcc 4.1.2 doesn't have any branch instructions. It only has jump instructions. For comparison operation it has this instruction: if cond Rx Ry execute this insn So compare and branch is implemented as if cond Rx Ry jmp Label This instru