<div dir="ltr"><div><div>It seems like d0 is always 14!<br></div>I check it with ARMGenAsmMatcher.inc it was the same!<br></div>How is it possible? because it should give the same register value that matches the underlying platform not any autogenerated value!? <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 17, 2015 at 10:26 AM, Sky Flyer <span dir="ltr"><<a href="mailto:skylake007@googlemail.com" target="_blank">skylake007@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Dear all,<br><br></div>in my TestRegisterInfo.td file, I defined a register like this:<br><br>class TestReg<bits<6> enc, string name> : Register<name> {<br> let HWEncoding{5-0} = enc;<br> let Namespace = "TEST";<br>}<br><br>def D0 : TestReg<0x01, "d0">, DwarfRegNum<[1]>;<br><br></div>but when I compile, the result I have in TestGenAsmMatcher.inc is this:<br><br>case 'd': // 7 strings to match.<br><div> switch (Name[1]) {<br> case '0': // 1 string to match.<br> return<b> 14</b>; // "d0"<br><br></div><div>I supposed I will get either 1 (because of encoding) or 0 (because of DwarfRegNum). Is this 14 something system generated? How can I assign my own number to the registers?<br><br></div><div>Cheers,<br></div><div>ES<br></div><div><br></div></div>
</blockquote></div><br></div>