<div dir="ltr">There is an -mc-relax-all command line flag that should do this. It will also use longer forms of some adds, subs, etc. Not sure how to set it from clang, but hopefully this helps point you in the right direction.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 13, 2015 at 1:42 PM, Yue Chen <span dir="ltr"><<a href="mailto:ychen.contact@gmail.com" target="_blank">ychen.contact@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">Dear all,<div><br></div><div>We are working on a research project based on LLVM. I wonder if there is any easy way to make LLVM </div><div>NOT emit short jump instructions with 1-byte-displacement, like "75 30    JNE +30", "eb 1a   JMP +1a", etc; </div><div>instead only emit 4-byte-displacement jump instructions with 3-byte zero paddings, like </div><div>"0f 85 30 00 00 00   JNE +30", "e9 1a 00 00 00    JMPQ +1a", etc., under the x86_64 architecture.</div><div>Apparently, this would increase the code size.</div><div><br></div><div>Best regards and thanks,</div><div>Yue</div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">~Craig</div>
</div>