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

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.

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.

Any idea?

Thanks!

Simone

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