[LLVMdev] Emitting PPC branches

Brent Monroe bmmonroe at uiuc.edu
Thu Feb 10 13:21:53 PST 2005


Hi,

I want to take an intrinsic function, and get the PowerPC back
end to emit:

loop:  lwarx  ...
       add    ...
       stwcx. ...
       bne- loop

I can successfully emit:

lwarx  ...
add    ...
stwcx. ...

How do I emit a label and a branch instruction?

Thanks,

Brent




More information about the llvm-dev mailing list