<div dir="ltr">Some of the tests are used to test the command line options in llc and the behavior of the LLVMTargetMachine class, like stop-after.ll and run-pass.ll. <span style="line-height:normal">I think that they are expected to work on every target and should stay here.</span><div><div><br></div><div>Cheers,</div><div>Alex</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-03 12:22 GMT-07:00 Mehdi Amini <span dir="ltr"><<a href="mailto:mehdi.amini@apple.com" target="_blank">mehdi.amini@apple.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I wonder about this directory and the 162 tests that are in it.<br>
<br>
Most tests have only this run line: ; RUN: llc < %s<br>
<br>
And when I look at the log of some tests like: test/CodeGen/Generic/2002-04-14-UnexpectedUnsignedType.ll<br>
The comment inside is:<br>
<br>
; This caused the backend to assert out with:<br>
; SparcInstrInfo.cpp:103: failed assertion `0 && "Unexpected unsigned type”’<br>
<br>
I doubt we are effectively testing the Sparc backend unless you run the validation on a Sparc.<br>
<br>
Since “CodeGen” can’t really be generic (you’ll need a target), I’m not sure what is intended to be in it. I’d like to move most of the tests in their associated backend directory, but I’d like to hear what is legit to be here?<br>
<br>
Thanks,<br>
<br>
Mehdi<br>
<br>
<br>
<br>
<br>
<br>
<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" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>