[LLVMdev] Node definitions, Pseudo ops and lowering SELECT/COND_BRANCH to branch instructions

Andy Nisbet A.Nisbet at mmu.ac.uk
Fri Jun 15 07:47:30 PDT 2007


Howdy,
  <---stuff deleted ----->


Basically the architecture I want to compile to (SABRE) RISC  does 
not support a conditional branch or a select instruction. It supports 
explicit branches of the form.

blt %a, %b, imm // branch on less than iff %a < %b then pc = pc + imm
So there are various branch instructions like .... ble, beq, bne, 
blt, bltu  and bleu (unsigned)

Im just slightly confused as to the distinction between expand and 
custom, and when it becomes appropriate to use custom over expand.

I'd like some definitive advice on whether to go for expansion or 
custom to go further with getting instruction selection working correctly.

Andy


      Dr. Andy Nisbet: URL http://www.docm.mmu.ac.uk/STAFF/A.Nisbet
Department of Computing and Mathematics, John Dalton Building, Manchester
        Metropolitan University, Chester Street, Manchester M1 5GD, UK.
Email: A.Nisbet at mmu.ac.uk, Phone:(+44)-161-247-1556; Fax:(+44)-161-247-1483.

"Before acting on this email or opening any attachments you
should read the Manchester Metropolitan University's email
disclaimer available on its website
http://www.mmu.ac.uk/emaildisclaimer "
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070615/0c18291f/attachment.html>


More information about the llvm-dev mailing list