<div dir="ltr"><div><div><div>Huh, I found the problem!!<br></div>I made a silly mistake, instead of having these lines in my TestMCCodeEmitter::getMachineOpValue function<br><br>    unsigned Reg = MO.getReg();<br>    unsigned RegNo = CTX.getRegisterInfo()->getEncodingValue(Reg);<br>    return RegNo;<br><br></div>I was just returning the Reg itself! like this:<br>    unsigned Reg = MO.getReg();<br>    return Reg;<br><br></div>Thanks a lot Krzysztof. Without your help I would have sunk into the TableGen see! :D<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 17, 2015 at 5:13 PM, Krzysztof Parzyszek <span dir="ltr"><<a href="mailto:kparzysz@codeaurora.org" target="_blank">kparzysz@codeaurora.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 9/17/2015 9:31 AM, Sky Flyer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you :)<br>
If you mean this field, it looks everything is ok:<br>
field bits<16> Inst = { 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, Dr{2}, Dr{1},<br>
Dr{0}, At{0}, 0, 0 };<br>
<br>
Is possible that the problem might be on the TestAsmParser.cpp side?<br>
</blockquote>
<br></span>
Could you post the entire class that contains this field?<div class="HOEnZb"><div class="h5"><br>
<br>
-Krzysztof<br>
<br>
<br>
-- <br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation<br>
</div></div></blockquote></div><br></div>