<div dir="ltr"><div><div><div><div>Dear all,<br><br>I am trying to write an AsmParser and a CodeEmitter for simple ADD instruction.<br>Here is what I have in the TestGenInstrInfo.td:<br><br><b>extern const MCInstrDesc TestInsts[] = {<br>...<br>{ 23, 3, 1, 0, 0, 0, 0x0ULL, nullptr, nullptr, OperandInfo13, 0, nullptr },  // Inst #23 = ADD8_rr<br>...<br>}</b><br><br></div>I parse the instruction successfully but I am not sure what I did wrong that the Size (as you can see in the line above is Zero for this instruction. (In EncodeInstruction, Desc.getSize() returns zero.)<br><br></div>Any help is appreciated....<br><br></div>Cheers,<br></div>ES<br></div>