diff options
| author | Weiming Zhao <weimingz@codeaurora.org> | 2017-03-11 19:40:24 +0000 |
|---|---|---|
| committer | Weiming Zhao <weimingz@codeaurora.org> | 2017-03-11 19:40:24 +0000 |
| commit | e0004f921504d5e87bdba4b21367b05940820a23 (patch) | |
| tree | bb752b95cb76c4c8fa80d9baaa900653ae77e938 /compiler-rt/test/builtins/Unit/cpu_model_test.c | |
| parent | b3f72ea7c1448550bcb5bf2f6f2c173c8c6ad740 (diff) | |
| download | bcm5719-llvm-e0004f921504d5e87bdba4b21367b05940820a23.tar.gz bcm5719-llvm-e0004f921504d5e87bdba4b21367b05940820a23.zip | |
[Builtin] Implement lit-test support
Summary:
This patch implements a initial support of lit test for builtins.
Unit/arm/call_apsr.S is updated to support thumb1.
It also fixes a bug in arm/aeabi_uldivmod_test.c
gcc_personality_test is XFAILED as the framework cannot handle it so far.
cpu_model_test is also XFAILED for now as it is expected to return non-zero.
Reviewers: rengolin, compnerd, jroelofs, erik.pilkington, arphaman
Reviewed By: jroelofs
Subscribers: jroelofs, aemerson, srhines, nemanjai, llvm-commits, mgorny
Differential Revision: https://reviews.llvm.org/D30802
llvm-svn: 297566
Diffstat (limited to 'compiler-rt/test/builtins/Unit/cpu_model_test.c')
| -rw-r--r-- | compiler-rt/test/builtins/Unit/cpu_model_test.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler-rt/test/builtins/Unit/cpu_model_test.c b/compiler-rt/test/builtins/Unit/cpu_model_test.c index ed484cdd4c3..6b47d143f07 100644 --- a/compiler-rt/test/builtins/Unit/cpu_model_test.c +++ b/compiler-rt/test/builtins/Unit/cpu_model_test.c @@ -1,4 +1,8 @@ -//===-- cpu_model_test.c - Test __builtin_cpu_supports -------------------------------===// +// FIXME: XFAIL the test because it is expected to return non-zero value. +// XFAIL: * +// REQUIRES: x86-target-arch +// RUN: %clang_builtins %s %librt -o %t && %run %t +//===-- cpu_model_test.c - Test __builtin_cpu_supports --------------------===// // // The LLVM Compiler Infrastructure // @@ -11,8 +15,6 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: x86-target-arch - #include <stdio.h> int main (void) { |

