diff options
author | Oleg Ranevskyy <oranevskyy@accesssoftek.com> | 2016-08-18 14:39:39 +0000 |
---|---|---|
committer | Oleg Ranevskyy <oranevskyy@accesssoftek.com> | 2016-08-18 14:39:39 +0000 |
commit | 361569f20d02cf2e2c9cbc5c303d77aa9ea589d6 (patch) | |
tree | 54c22f9283e2fdfd479a41a720e04b38a7d9a954 /test/builtins | |
parent | 8a8dfd2eca70b8e629a291e979d29a02f58fc5b1 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@279071 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/builtins')
-rw-r--r-- | test/builtins/Unit/cpu_model_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/builtins/Unit/cpu_model_test.c b/test/builtins/Unit/cpu_model_test.c index 5a918bde7..6a170372d 100644 --- a/test/builtins/Unit/cpu_model_test.c +++ b/test/builtins/Unit/cpu_model_test.c @@ -11,6 +11,8 @@ // //===----------------------------------------------------------------------===// +// REQUIRES: x86-target-arch + int main (void) { if(__builtin_cpu_supports("avx2")) return 4; |