[llvm-commits] [llvm] r67849 - /llvm/trunk/test/CodeGen/PowerPC/int-fp-conv-0.ll

Misha Brukman brukman at gmail.com
Mon Mar 30 11:36:20 PDT 2009


On Mon, Mar 30, 2009 at 10:55 AM, Dan Gohman <gohman at apple.com> wrote:

> >> --- llvm/trunk/test/CodeGen/PowerPC/int-fp-conv-0.ll (original)
> >> +++ llvm/trunk/test/CodeGen/PowerPC/int-fp-conv-0.ll Fri Mar 27
> >> 11:17:22 2009
> >> @@ -1,4 +1,4 @@
> >> -; RUN: llvm-as < %s | llc -march=ppc64 -debug |& not grep store
> >> +; RUN: llvm-as < %s | llc -march=ppc64 -debug |& not grep {= store}
> >
> > I thought that "store" instructions were never assigned to a
> > variable...
>
> This test is grepping through the -debug output of llc, and the stores
> its
> looking for do happen to be printed with =.
>
> Grepping through -debug output isn't very nice in any case, but at the
> moment there aren't any better ways to express this specific test.
>

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.

Let me know if you run into any issues with writing the tests.

Misha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090330/cafe1717/attachment.html>


More information about the llvm-commits mailing list