summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/builtins/Unit/truncdfsf2vfp_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/truncdfsf2vfp_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/truncdfsf2vfp_test.c')
-rw-r--r--compiler-rt/test/builtins/Unit/truncdfsf2vfp_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/builtins/Unit/truncdfsf2vfp_test.c b/compiler-rt/test/builtins/Unit/truncdfsf2vfp_test.c
index eaeda658259..efe6f97ab5a 100644
--- a/compiler-rt/test/builtins/Unit/truncdfsf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/truncdfsf2vfp_test.c
@@ -19,7 +19,7 @@
extern COMPILER_RT_ABI float __truncdfsf2vfp(double a);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__truncdfsf2vfp(double a)
{
float actual = __truncdfsf2vfp(a);
@@ -33,7 +33,7 @@ int test__truncdfsf2vfp(double a)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__truncdfsf2vfp(0.0))
return 1;
if (test__truncdfsf2vfp(1.0))
OpenPOWER on IntegriCloud