"Mohamed Shafi" <[EMAIL PROTECTED]> 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