summaryrefslogtreecommitdiff
path: root/test/builtins/Unit/unorddf2vfp_test.c
diff options
context:
space:
mode:
authorWeiming Zhao <weimingz@codeaurora.org>2017-02-15 23:59:09 +0000
committerWeiming Zhao <weimingz@codeaurora.org>2017-02-15 23:59:09 +0000
commit06bbcb3ecb4580f25a3ac6396a4b273638db642f (patch)
tree560ada7f52f65dd0de17b5c8a73c6ceac3fec002 /test/builtins/Unit/unorddf2vfp_test.c
parentfd096f77aa65c51e57af848ca9213a2416a2eead (diff)
downloadcompiler-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/unorddf2vfp_test.c')
-rw-r--r--test/builtins/Unit/unorddf2vfp_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/builtins/Unit/unorddf2vfp_test.c b/test/builtins/Unit/unorddf2vfp_test.c
index d49d56789..be17e4113 100644
--- a/test/builtins/Unit/unorddf2vfp_test.c
+++ b/test/builtins/Unit/unorddf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __unorddf2vfp(double a, double b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__unorddf2vfp(double a, double b)
{
int actual = __unorddf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__unorddf2vfp(double a, double b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__unorddf2vfp(0.0, NAN))
return 1;
if (test__unorddf2vfp(NAN, 1.0))