[LLVMdev] SparcV9 casa instruction

Brent Monroe bmmonroe at uiuc.edu
Fri Feb 25 14:33:34 PST 2005


Hi,

I need to implement the compare and swap instruction in the
Sparc backend.  It has the form:

casa [reg]imm, reg, reg

I believe I have specified it correctly in SparcV9Instr.def:

I(CASAi, "casa", 4, -1, B12, true, 0, 1, SPARC_SINGLE,
M_LOAD_FLAG|M_STORE_FLAG)

Is this correct?  And how do I specify the above syntax in
SparcV9InstrInfo.td?

Brent




More information about the llvm-dev mailing list