aboutsummaryrefslogtreecommitdiff
path: root/test/builtins/Unit/negdf2vfp_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/builtins/Unit/negdf2vfp_test.c')
-rw-r--r--test/builtins/Unit/negdf2vfp_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/builtins/Unit/negdf2vfp_test.c b/test/builtins/Unit/negdf2vfp_test.c
index f673b92cfc87..776dca618538 100644
--- a/test/builtins/Unit/negdf2vfp_test.c
+++ b/test/builtins/Unit/negdf2vfp_test.c
@@ -1,3 +1,4 @@
+// RUN: %clang_builtins %s %librt -o %t && %run %t
//===-- negdf2vfp_test.c - Test __negdf2vfp -------------------------------===//
//
// The LLVM Compiler Infrastructure
@@ -17,7 +18,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 +34,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))