diff options
author | Weiming Zhao <weimingz@codeaurora.org> | 2017-02-15 23:59:09 +0000 |
---|---|---|
committer | Weiming Zhao <weimingz@codeaurora.org> | 2017-02-15 23:59:09 +0000 |
commit | 06bbcb3ecb4580f25a3ac6396a4b273638db642f (patch) | |
tree | 560ada7f52f65dd0de17b5c8a73c6ceac3fec002 /test/builtins/Unit/negdf2vfp_test.c | |
parent | fd096f77aa65c51e57af848ca9213a2416a2eead (diff) | |
download | compiler-rt-06bbcb3ecb4580f25a3ac6396a4b273638db642f.tar.gz |
[Builtin][ARM] #ifdef ARM vfp tests and cpu_model_tests
Summary:
Add in #ifdef to exclude cpu_model_test on non-X86 and *vfp_test on ARM targets without VFP support.
This is consistent with other target-specific tests that print "Skipped" if not supported.
Reviewers: rengolin, compnerd, asbirlea
Reviewed By: compnerd
Subscribers: llvm-commits, aemerson
Differential Revision: https://reviews.llvm.org/D29882
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@295261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/builtins/Unit/negdf2vfp_test.c')
-rw-r--r-- | test/builtins/Unit/negdf2vfp_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/builtins/Unit/negdf2vfp_test.c b/test/builtins/Unit/negdf2vfp_test.c index f673b92cf..72bde7c01 100644 --- a/test/builtins/Unit/negdf2vfp_test.c +++ b/test/builtins/Unit/negdf2vfp_test.c @@ -17,7 +17,7 @@ #include <math.h> -#if __arm__ +#if __arm__ && __VFP_FP__ extern COMPILER_RT_ABI double __negdf2vfp(double a); int test__negdf2vfp(double a) @@ -33,7 +33,7 @@ int test__negdf2vfp(double a) int main() { -#if __arm__ +#if __arm__ && __VFP_FP__ if (test__negdf2vfp(1.0)) return 1; if (test__negdf2vfp(HUGE_VALF)) |