<div>Hi again!</div>
<div> </div>
<div>I've managed to run the llvm-test with the options Fernando told.</div>
<div> </div>
<div>What I did was the following:</div>
<div> </div>
<div>I changed llc regalloc option in TEST.llc.makefile to my allocator.</div>
<div>I changed LLCBETAOPTION in makefile.programs file for all architechtures to use my allocator.</div>
<div>I run make TEST=nightly report.html and got all tests under LLCBETA failed ('*' symbol). Though I know that my algorithm works. At least I succeeded to pass some files from the LLVM tests (oggenc.c, for example) through llvm-gcc -emit-llvm ; llc -regalloc=myregalloc; gcc -g commands and everything worked fine (even running of the compiled file).
</div>
<div>So I guess that nightlytest compares output of tested programs with some prepared results and the output of llc with my regalloc is different from the expected. Is it right? Or did I do smth wrong?<br> </div>
<div>BTW, how can I run all tests only on LLC to reduce the amount of time to wait until tests are finished, if it's possible?<br> </div>
<div>Thanks!</div>
<div> </div>
<div>P.S. I've checked out LLVM before running the tests</div>
<div> </div>
<div><span class="gmail_quote">On 9/2/06, <b class="gmail_sendername">Fernando Magno Quintao Pereira</b> <<a href="mailto:fernando@cs.ucla.edu">fernando@cs.ucla.edu</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>> Hi!<br>><br>> I developed a register allocator within LLVM and now I need to test its<br>> efficiency. Can I do this using llvm-test package?
<br>> Do llvm tests check all available regalloc options automatically? If not,<br>> then what modifications should I do to the test files?<br>> It would be great if I could test my algo along with linearscan and compare
<br>> the results.<br>><br>> Thanks.<br>><br>> Tony.<br><br>Hey, Anton.<br><br>   In TEST.llc.Makefile, you can set the type of register allocator that<br>you want:<br>LLC_OPTS = -f -o=/dev/null -stats -time-passes -regalloc=linearscan
<br><br>to compare against your, open "Makefile.program", and set<br>LLCBETAOPTION := -regalloc=your_allocator -fast<br><br>After that, you just have to type make TEST=nightly report.html<br>on project/llvm-test/
<br><br>An '*' on the report means that your test failed. The report will give you<br>your compile time, and the running time of the compiled file.<br><br>Remember to check the test files from CVS.<br><br>Best,<br><br>Fernando
<br></blockquote></div>