[compiler-rt][tests] cpu_model_test.c test fails to compile if X86 is not clang's...
authorOleg Ranevskyy <oranevskyy@accesssoftek.com>
Thu, 18 Aug 2016 14:39:39 +0000 (14:39 +0000)
committerOleg Ranevskyy <oranevskyy@accesssoftek.com>
Thu, 18 Aug 2016 14:39:39 +0000 (14:39 +0000)
commit8a8b7b6df77568d88ce6a4fce31504bc34807d0c
tree08f3b6c90ce4537dec23d35ebe097ccaea93e90a
parent83082a03370bd65a834dc3ba2d81c4996ab22cf4
[compiler-rt][tests] cpu_model_test.c test fails to compile if X86 is not clang's default target

Summary:
test/builtins/Unit/cpu_model_test.c tests the X86 specific builtin `__builtin_cpu_supports`.
It fails if the clang's default target is not X86.

The proposed patch adds an additional requirement for the X86 target to the test, making lit ignore the test if the target is different.

Reviewers: asbirlea

Subscribers: dberris, llvm-commits

Differential Revision: https://reviews.llvm.org/D23633

llvm-svn: 279071
compiler-rt/test/builtins/Unit/cpu_model_test.c