<div dir="ltr">Something like this?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 9, 2013 at 10:15 PM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com" target="_blank">clattner@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div class="im"><div>On Oct 9, 2013, at 11:15 AM, Craig Topper <<a href="mailto:craig.topper@gmail.com" target="_blank">craig.topper@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr">It looks like there are some instructions that exist purely to trick the assembler parser into allowing either GR32 or GR64 to match GAS behavior. These instructions are then excluded in the disassembler since they have the same encodings. I can mark them AsmParserOnly in the td file to remove it from the disassembler, but it seems like we really should have the assembler generate the same internal instruction with either instruction. Is there a good way to do this or do I need to add custom checks to the parser itself?</div>
</blockquote><div><br></div></div><div>It's been too long since I've looked at this.  Perhaps it makes sense to define a new operand that accepts either the 32-bit or the 64-bit spelling for the registers?</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>-Chris</div></font></span><div class="im"><div><br></div><br><blockquote type="cite">
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 9, 2013 at 10:08 AM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com" target="_blank">clattner@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
On Oct 8, 2013, at 10:28 PM, Craig Topper <<a href="mailto:craig.topper@gmail.com" target="_blank">craig.topper@gmail.com</a>> wrote:<br>
<br>
> I don't know yet if we can get rid of them completely, but I'm certainly going to try. If I can't, I think a bit in the td files is a good idea.<br>
<br>
</div>Makes sense, thanks for working on this!<br>
<span><font color="#888888"><br>
-Chris<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>~Craig
</div>
</blockquote></div></div><br></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>~Craig
</div>