[RFC v2] Towards an assembler parser for PowerPC
Ulrich Weigand
Ulrich.Weigand at de.ibm.com
Tue Mar 19 06:01:23 PDT 2013
Kevin Enderby <enderby at apple.com> wrote on 18.03.2013 20:08:50:
> On Mar 18, 2013, at 11:55 AM, Ulrich Weigand
> <Ulrich.Weigand at de.ibm.com> wrote:
> >
> > OutStreamer.EmitRawText("\tbcl 20, 31, " + Twine(AnonSymbol->
getName
> > ()));
> >
> > bcl 20 ... seems to imply an unconditional branch after all. Do you
> > know why this can't just use a plain bl?
>
> Basically it is a branch and link instruction but causes the
> processor to not put the return address in the link register stack.
> As this is the pic code that is branching to itself to get the pc
> into a general register. And thus will never return to that address.
Ah, I see. Thanks for the explanation!
Bye,
Ulrich
More information about the llvm-commits
mailing list