<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>Hi all,</p>
<p><br>
</p>
<p>I noticed that for the ARM instruction "ADDri" (which I assume to be "add register immediate") the 3rd operand which should intuitively have operand type MCOI::OPERAND_IMMEDIATE actually has MCOI::OPERAND_UNKNOWN (you can see this in ARMGenInstrInfo.inc
inside the build folder).</p>
<p><br>
</p>
<p>I fixed this by adding the line "let OperandType = OPERAND_IMMEDIATE;" in lib/Target/ARM/ARMInstrInfo.td in the definition of mod_imm (line 692).</p>
<p><br>
</p>
<p>Is this an actual bug? And if so, what could be a proper fix? I'm not familiar with the intricacies of the ARM tablegen structure.</p>
<p><br>
</p>
<p>I'm working on<br>
</p>
<p><a href="https://github.com/llvm-mirror/llvm" class="OWAAutoLink" id="LPlnk669561" previewremoved="true">https://github.com/llvm-mirror/llvm</a></p>
<p>branch: release_80</p>
<p>commit: <span>8779077dde876ddfb6dfbe7f1da338f820a8fa13</span><br>
</p>
<p><br>
</p>
<p>Regards,</p>
<p>Yannick<br>
</p>
</div>
</body>
</html>