<div dir="ltr"><div><div>Hi all,<br><br></div>is it possible in TableGen to set value to instruction bits based on the operands?<br></div><div>In other words, parsing the instruction at the TableGen level.<br><br>for instance:<br><br>"add $Rd, $Rn, $imm"<br><br></div><div>I want to have something like this:<br><br><b>Inst{8} = ($Rn == Test::A0)  1 : 0;</b><br><br></div><div>Is there any way to do that in TableGen? If not is there any example in the provided example codes?<br><br></div><div>Cheers,<br></div><div>ES<br></div></div>