<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi,</p>
<p style="margin-top:0;margin-bottom:0">Absolute LLVM newbie here. I am trying to define an add instruction which takes 2 register inputs ra and rb and writes the sum into ra.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div><span style="font-family: "Courier New", monospace;">def ADDR : F_R<0b000000,(outs) , (ins CPURegs:$rb, CPURegs:$ra),"ADDR $ra, $rb",[(set CPURegs:$ra, (add C</span><span style="font-family: "Courier New", monospace;">PURegs:$ra, CPURegs:$rb))] >;</span><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I get this error:<br>
</div>
<span style="font-family: "Courier New", monospace;">error: In ADDR: Operand $rb does not exist in operand list!</span>
<p></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-family: "Courier New", monospace;"><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-family: Calibri, Helvetica, sans-serif;">Does anybody know what that means?</span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-family: Calibri, Helvetica, sans-serif;">Thanks.</span><br>
</p>
</div>
</body>
</html>