[llvm-dev] llvm-lit and FileCheck: How to ignore unsupported architecture for a specific test

Vedant Kumar via llvm-dev llvm-dev at lists.llvm.org
Thu Mar 22 17:01:02 PDT 2018


> On Mar 22, 2018, at 4:20 PM, Simone Atzeni via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hi,
>  
> I was wondering if there is a way with llvm-lit and FileCheck to identify if a specific test should run or not based on the processor architecture.

You can add a 'REQUIRES' line to a specific test (see test/Assembler/return-column.s) for an example.


> For example, I have a test that can run only in an Intel KNL, so if I run the tests in a Sandybridge I want to ignore that test.

You may have to edit the lit configuration scripts to introduce a suitable 'available feature' when Intel KNL is available.

vedant

>  
> Any idea?
>  
> Thanks!
> Simone
>  
> This email message is for the sole use of the intended recipient(s) and may contain confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. 
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev <http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180322/9ec2cd09/attachment.html>


More information about the llvm-dev mailing list