[llvm-commits] [llvm] r78083 - in /llvm/trunk/test/CodeGen/ARM: fnmscs.ll fnmuls.ll

Chris Lattner clattner at apple.com
Tue Aug 4 11:44:20 PDT 2009


On Aug 4, 2009, at 11:26 AM, David Goodwin wrote:

> Where is the documentation for FileCheck?

I still need to write the docs unfortunately.

Basically it does a grep for a prefix (defaulting to "CHECK:") and  
verifies that the strings occur, and in order.  Take a look at CodeGen/ 
arm/mul_const.ll for a simple example.  It also defaults to  
canonicalizing horizontal whitespace, so you don't have to do an exact  
match on tabs and spaces.

One annoying current limitation is that it doesn't support regex's yet.

-Chris


>
> On Aug 4, 2009, at 11:15 AM, Anton Korobeynikov wrote:
>
>> Hi, David
>>
>>> -; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep -E {fnmscs
>>> \\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
>>> -; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,+neonfp | grep -
>>> E {fnmscs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
>>> -; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,-neonfp | grep -
>>> E {fnmscs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
>>> +; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep -E {fnmscs
>>> \\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2
>>> +; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,+neonfp | grep -
>>> E {fnmscs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2
>>> +; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,-neonfp | grep -
>>> E {fnmscs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2
>> Why don't use FileCheck for this?
>>
>> -- 
>> With best regards, Anton Korobeynikov
>> Faculty of Mathematics and Mechanics, Saint Petersburg State
>> University
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list