summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/builtins/Unit/divsf3vfp_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
commitd77a6730b181d6eea672c30e3a736c1281a9a3f0 (patch)
tree0ca2a45aecca94c9cde7a2015a0ad06d632c3451 /compiler-rt/test/builtins/Unit/divsf3vfp_test.c
parent08eb081ac32420a9a2d9019cda836284b0e73eab (diff)
downloadbcm5719-llvm-d77a6730b181d6eea672c30e3a736c1281a9a3f0.tar.gz
bcm5719-llvm-d77a6730b181d6eea672c30e3a736c1281a9a3f0.zip
[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 llvm-svn: 295261
Diffstat (limited to 'compiler-rt/test/builtins/Unit/divsf3vfp_test.c')
-rw-r--r--compiler-rt/test/builtins/Unit/divsf3vfp_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/builtins/Unit/divsf3vfp_test.c b/compiler-rt/test/builtins/Unit/divsf3vfp_test.c
index f742441991f..039fa7f0184 100644
--- a/compiler-rt/test/builtins/Unit/divsf3vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/divsf3vfp_test.c
@@ -19,7 +19,7 @@
extern COMPILER_RT_ABI float __divsf3vfp(float a, float b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__divsf3vfp(float a, float b)
{
float actual = __divsf3vfp(a, b);
@@ -33,7 +33,7 @@ int test__divsf3vfp(float a, float b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__divsf3vfp(1.0, 1.0))
return 1;
if (test__divsf3vfp(12345.678, 1.23))
OpenPOWER on IntegriCloud