[LLVMdev] Generate addi 40, r3 instruction
Vikram Singh
vsp1729 at gmail.com
Fri Apr 5 05:27:39 PDT 2013
I want to generate the instruction like
addi 40, r3 ! i.e. r3 = r3 + 40
The format i wrote is
def ADDI : F1<opcode, (outs IntRegs:$dst), (ins IntRegs:$dst, i32imm:$imm)
"addi $imm, $dst",
[(set $IntRegs:$dst, (add $IntRegs:$dst, i32imm:$c))]
but it is not compiling.
what should be the format.
vikram
--
View this message in context: http://llvm.1065342.n5.nabble.com/Generate-addi-40-r3-instruction-tp56489.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
More information about the llvm-dev
mailing list