On Mon, Mar 30, 2009 at 10:55 AM, Dan Gohman <span dir="ltr"><<a href="mailto:gohman@apple.com">gohman@apple.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">>> --- llvm/trunk/test/CodeGen/PowerPC/int-fp-conv-0.ll (original)<br>
>> +++ llvm/trunk/test/CodeGen/PowerPC/int-fp-conv-0.ll Fri Mar 27<br>
>> 11:17:22 2009<br>
>> @@ -1,4 +1,4 @@<br>
>> -; RUN: llvm-as < %s | llc -march=ppc64 -debug |& not grep store<br>
>> +; RUN: llvm-as < %s | llc -march=ppc64 -debug |& not grep {= store}<br>
><br>
> I thought that "store" instructions were never assigned to a<br>
> variable...<br>
<br>
</div>This test is grepping through the -debug output of llc, and the stores<br>
its<br>
looking for do happen to be printed with =.<br>
<br>
Grepping through -debug output isn't very nice in any case, but at the<br>
moment there aren't any better ways to express this specific test.<font color="#888888"><br></font></blockquote></div><br>You can write a unittest to check this.  It might require some refactoring to be able to run all of LLC's passes separately from running the tool on the command line, since they are currently hard-coded in its main() function.<br>
<br>Let me know if you run into any issues with writing the tests.<br><br>Misha<br>