<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 10, 2014 at 1:38 PM, Steve King <span dir="ltr"><<a href="mailto:kingshizzle@gmail.com" target="_blank">kingshizzle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">The -bare option keeps objdump output consistent with test expectations regardless of host platform.  As discussed on the list, default llvm-objdump output could change per host:  GNU style for Linux, otools for Apple, etc.</blockquote><div><br></div><div>I think this needs some discussion in LLVMDev. I don't see the point in slaving to reproduce the system tool's output when we don't match the command-line options.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">  Diagnostic tests cannot depend on the per-host default.  Tests only need updating (a tedious process) if -bare output changes.<br></blockquote><div><br></div><div>In the discussion on llvmdev, Rafael seemed to suggest that llvm-objdump is not really meant for testing purposes (<a href="https://groups.google.com/forum/#!msg/llvm-dev/KnUNBPG1CRA/tJmlFt7IB3wJ">https://groups.google.com/forum/#!msg/llvm-dev/KnUNBPG1CRA/tJmlFt7IB3wJ</a>). Rafael, what do you think about the present patch?</div><div><br></div><div>Also, it seems like almost all of these tests are using -filetype=obj output only to pass it to llvm-objdump. Is there a reason they aren't directly doing asm output?</div><div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
If this is agreeable, I'd like to keep the -bare option and -d consistency patches unified since both touch the same line in large number of diagnostic test files.<br>
<br>
<a href="http://reviews.llvm.org/D5279" target="_blank">http://reviews.llvm.org/D5279</a><br>
<br>
<br>
</blockquote></div><br></div></div>