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: A Query regarding jump pattern


"Mohamed Shafi" <shafitvm@gmail.com> writes:

>   Ok , looking at another reply from Jim
> (http://gcc.gnu.org/ml/gcc/2008-04/msg00311.html), where he suggests
> to use shorten_branhes in reorg and generate indirect branch, it looks
> like i will have to reserve a register.  Am i right?

You will have to do something.  Having the jump pattern require a
scratch register is one approach.  For a much more complicated
approach, see sh.md.


> If that is the case it seems that there is no need for a indirect_jump pattern.
> So can you tell me when exactly are the indirect_jump patterns will be
> utilized by gcc?

indirect_jump jumps to a value held in a register.  jump jumps to a
constant location.  indirect_jump is used for things like the gcc
&&label extension.

Ian


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