Re: 32 bit jump instruction.

2006-12-13 Thread amylaar
Quoting Steven Bosscher <[EMAIL PROTECTED]>: > On 12/13/06, Joern Rennecke <[EMAIL PROTECTED]> wrote: > > In http://gcc.gnu.org/ml/gcc/2006-12/msg00328.html, you wrote: > > However, because the SH has delayed branches, there is always a guaranteed > way > > to find a register - one can be saved, a

Re: 32 bit jump instruction.

2006-12-13 Thread Steven Bosscher
On 12/13/06, Joern Rennecke <[EMAIL PROTECTED]> wrote: In http://gcc.gnu.org/ml/gcc/2006-12/msg00328.html, you wrote: However, because the SH has delayed branches, there is always a guaranteed way to find a register - one can be saved, and then be restored in the delay slot. Heh, that's an inte

Re: 32 bit jump instruction.

2006-12-13 Thread Joern Rennecke
In http://gcc.gnu.org/ml/gcc/2006-12/msg00328.html, you wrote: >> On 06 Dec 2006 23:13:35 -0800, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: >> If you can't afford to lose a register, then I think your only option >> is to pick some callee-saved register and have each branch instruction >

Re: 32 bit jump instruction.

2006-12-12 Thread Ian Lance Taylor
"Rohit Arul Raj" <[EMAIL PROTECTED]> writes: > > If you can't afford to lose a register, then I think your only option > > is to pick some callee-saved register and have each branch instruction > > explicitly clobber it. Then it will be available for use in a long > > branch, and it will be avail

Re: 32 bit jump instruction.

2006-12-12 Thread Rohit Arul Raj
On 06 Dec 2006 23:13:35 -0800, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: David Daney <[EMAIL PROTECTED]> writes: > > I am working on a private target where jump instruction patterns are > > similiar to this > > > > jmp <24 bit offset> > > jmp for 32 bit offsets > > > > if my offset is greater

Re: 32 bit jump instruction.

2006-12-06 Thread Ian Lance Taylor
David Daney <[EMAIL PROTECTED]> writes: > > I am working on a private target where jump instruction patterns are > > similiar to this > > > > jmp <24 bit offset> > > jmp for 32 bit offsets > > > > if my offset is greater than 24 bits, then i have to move the offset > > to an address register. But

Re: 32 bit jump instruction.

2006-12-06 Thread David Daney
Rohit Arul Raj wrote: Hi all, I am working on a private target where jump instruction patterns are similiar to this jmp <24 bit offset> jmp for 32 bit offsets if my offset is greater than 24 bits, then i have to move the offset to an address register. But inside the branch instruction (in md

32 bit jump instruction.

2006-12-06 Thread Rohit Arul Raj
Hi all, I am working on a private target where jump instruction patterns are similiar to this jmp <24 bit offset> jmp for 32 bit offsets if my offset is greater than 24 bits, then i have to move the offset to an address register. But inside the branch instruction (in md file), i am not able to