<div dir="ltr"><div><div><div>Oh, I see.<br><br>Does llvm-dis correctly reverse what llvm-as did?<br></div>Also, does it not help to do something like:<br><span style="font-family:monospace,monospace">llvm-as -o - -f <IR_file.ll> | xxd</span><br><br></div>i.e. get the value of each byte in the output file... of course, this assumes you know what you're looking for in the .bc file (which I don't).<br><br></div>N<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 19, 2016 at 12:44 PM, Madhur Amilkanthwar <span dir="ltr"><<a href="mailto:madhur13490@gmail.com" target="_blank">madhur13490@gmail.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">llvm-mc will help me for target specific things. <div>My question is at IR level and .ll to .bc translation.</div><div><br></div><div>To rephrase, how do I verify if llvm-as translates an input LLVM IR correctly to .bc representation?</div><div>I'd like to see exact bytes generated by llvm-as.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 19, 2016 at 2:05 PM, Nemanja Ivanovic <span dir="ltr"><<a href="mailto:nemanja.i.ibm@gmail.com" target="_blank">nemanja.i.ibm@gmail.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>Perhaps you can run llvm-mc on the instruction in question and provide it the --show-encoding option.<br></div>Or conversely, you can specify the encoding you desire and run llvm-mc with --disassemble on it.<br><br></div>N<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, Aug 19, 2016 at 7:52 AM, Madhur Amilkanthwar via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hi,</div>For my input file I think that llvm-as is encoding an instruction incorrectly.<div>Is there any way to dump the numerical representation of input textual LLVM IR on terminal?</div><div>"-f" option to llvm-as did not help.<span class="HOEnZb"><font color="#888888"><span><font color="#888888"><br><div><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><i style="font-size:12.8px">Disclaimer: Views, concerns, thoughts, questions, ideas expressed in this mail are of my own and my employer has no take in it. </i><br></div><div>Thank You.<br>Madhur D. Amilkanthwar<br><br></div></div></div>
</div></font></span></font></span></div></div><span class="HOEnZb"><font color="#888888">
<br></font></span></div></div><span class="HOEnZb"><font color="#888888">______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><i style="font-size:12.8px">Disclaimer: Views, concerns, thoughts, questions, ideas expressed in this mail are of my own and my employer has no take in it. </i><br></div><div>Thank You.<br>Madhur D. Amilkanthwar<br><br></div></div></div>
</font></span></div>
</blockquote></div><br></div>