summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--compiler-rt/test/builtins/Unit/adddf3vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/addsf3vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/cpu_model_test.c7
-rw-r--r--compiler-rt/test/builtins/Unit/divdf3vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/divsf3vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/eqdf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/eqsf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/extebdsfdf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/fixdfsivfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/fixsfsivfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/fixunsdfsivfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/fixunssfsivfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/floatsidfvfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/floatsisfvfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/floatunssidfvfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/floatunssisfvfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/gedf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/gesf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/gtdf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/gtsf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/ledf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/lesf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/ltdf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/ltsf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/muldf3vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/mulsf3vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/nedf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/negdf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/negsf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/nesf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/subdf3vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/subsf3vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/truncdfsf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/unorddf2vfp_test.c4
-rw-r--r--compiler-rt/test/builtins/Unit/unordsf2vfp_test.c4
35 files changed, 75 insertions, 68 deletions
diff --git a/compiler-rt/test/builtins/Unit/adddf3vfp_test.c b/compiler-rt/test/builtins/Unit/adddf3vfp_test.c
index 739515291fe..c1b9884197a 100644
--- a/compiler-rt/test/builtins/Unit/adddf3vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/adddf3vfp_test.c
@@ -17,7 +17,7 @@
#include <math.h>
-#if __arm__
+#if __arm__ && __VFP_FP__
extern COMPILER_RT_ABI double __adddf3vfp(double a, double b);
int test__adddf3vfp(double a, double b)
@@ -33,7 +33,7 @@ int test__adddf3vfp(double a, double b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__adddf3vfp(1.0, 1.0))
return 1;
if (test__adddf3vfp(HUGE_VAL, HUGE_VAL))
diff --git a/compiler-rt/test/builtins/Unit/addsf3vfp_test.c b/compiler-rt/test/builtins/Unit/addsf3vfp_test.c
index 4b3dcccac4d..958865d68e4 100644
--- a/compiler-rt/test/builtins/Unit/addsf3vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/addsf3vfp_test.c
@@ -19,7 +19,7 @@
extern COMPILER_RT_ABI float __addsf3vfp(float a, float b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__addsf3vfp(float a, float b)
{
float actual = __addsf3vfp(a, b);
@@ -33,7 +33,7 @@ int test__addsf3vfp(float a, float b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__addsf3vfp(1.0, 1.0))
return 1;
if (test__addsf3vfp(HUGE_VALF, HUGE_VALF))
diff --git a/compiler-rt/test/builtins/Unit/cpu_model_test.c b/compiler-rt/test/builtins/Unit/cpu_model_test.c
index 6a170372d97..ed484cdd4c3 100644
--- a/compiler-rt/test/builtins/Unit/cpu_model_test.c
+++ b/compiler-rt/test/builtins/Unit/cpu_model_test.c
@@ -13,9 +13,16 @@
// REQUIRES: x86-target-arch
+#include <stdio.h>
+
int main (void) {
+#if defined(i386) || defined(__x86_64__)
if(__builtin_cpu_supports("avx2"))
return 4;
else
return 3;
+#else
+ printf("skipped\n");
+ return 0;
+#endif
}
diff --git a/compiler-rt/test/builtins/Unit/divdf3vfp_test.c b/compiler-rt/test/builtins/Unit/divdf3vfp_test.c
index 6f0808abc93..8735f637828 100644
--- a/compiler-rt/test/builtins/Unit/divdf3vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/divdf3vfp_test.c
@@ -17,7 +17,7 @@
#include <math.h>
-#if __arm__
+#if __arm__ && __VFP_FP__
extern COMPILER_RT_ABI double __divdf3vfp(double a, double b);
int test__divdf3vfp(double a, double b)
@@ -33,7 +33,7 @@ int test__divdf3vfp(double a, double b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__divdf3vfp(1.0, 1.0))
return 1;
if (test__divdf3vfp(12345.678, 1.23))
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))
diff --git a/compiler-rt/test/builtins/Unit/eqdf2vfp_test.c b/compiler-rt/test/builtins/Unit/eqdf2vfp_test.c
index 585bd08e978..4780d87ea20 100644
--- a/compiler-rt/test/builtins/Unit/eqdf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/eqdf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __eqdf2vfp(double a, double b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__eqdf2vfp(double a, double b)
{
int actual = __eqdf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__eqdf2vfp(double a, double b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__eqdf2vfp(0.0, 0.0))
return 1;
if (test__eqdf2vfp(1.0, 1.0))
diff --git a/compiler-rt/test/builtins/Unit/eqsf2vfp_test.c b/compiler-rt/test/builtins/Unit/eqsf2vfp_test.c
index b0eed9402a3..7d6f581ce4a 100644
--- a/compiler-rt/test/builtins/Unit/eqsf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/eqsf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __eqsf2vfp(float a, float b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__eqsf2vfp(float a, float b)
{
int actual = __eqsf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__eqsf2vfp(float a, float b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__eqsf2vfp(0.0, 0.0))
return 1;
if (test__eqsf2vfp(1.0, 1.0))
diff --git a/compiler-rt/test/builtins/Unit/extebdsfdf2vfp_test.c b/compiler-rt/test/builtins/Unit/extebdsfdf2vfp_test.c
index 53c72828f74..ec27c4c69b5 100644
--- a/compiler-rt/test/builtins/Unit/extebdsfdf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/extebdsfdf2vfp_test.c
@@ -19,7 +19,7 @@
extern COMPILER_RT_ABI double __extendsfdf2vfp(float a);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__extendsfdf2vfp(float a)
{
double actual = __extendsfdf2vfp(a);
@@ -33,7 +33,7 @@ int test__extendsfdf2vfp(float a)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__extendsfdf2vfp(0.0))
return 1;
if (test__extendsfdf2vfp(1.0))
diff --git a/compiler-rt/test/builtins/Unit/fixdfsivfp_test.c b/compiler-rt/test/builtins/Unit/fixdfsivfp_test.c
index c6102e274ee..73e4e58eda9 100644
--- a/compiler-rt/test/builtins/Unit/fixdfsivfp_test.c
+++ b/compiler-rt/test/builtins/Unit/fixdfsivfp_test.c
@@ -18,7 +18,7 @@
extern int __fixdfsivfp(double a);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__fixdfsivfp(double a)
{
int actual = __fixdfsivfp(a);
@@ -32,7 +32,7 @@ int test__fixdfsivfp(double a)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__fixdfsivfp(0.0))
return 1;
if (test__fixdfsivfp(1.0))
diff --git a/compiler-rt/test/builtins/Unit/fixsfsivfp_test.c b/compiler-rt/test/builtins/Unit/fixsfsivfp_test.c
index 9abf5e85647..0ded952d18a 100644
--- a/compiler-rt/test/builtins/Unit/fixsfsivfp_test.c
+++ b/compiler-rt/test/builtins/Unit/fixsfsivfp_test.c
@@ -18,7 +18,7 @@
extern int __fixsfsivfp(float a);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__fixsfsivfp(float a)
{
int actual = __fixsfsivfp(a);
@@ -32,7 +32,7 @@ int test__fixsfsivfp(float a)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__fixsfsivfp(0.0))
return 1;
if (test__fixsfsivfp(1.0))
diff --git a/compiler-rt/test/builtins/Unit/fixunsdfsivfp_test.c b/compiler-rt/test/builtins/Unit/fixunsdfsivfp_test.c
index ebd0be274f6..33cec81da18 100644
--- a/compiler-rt/test/builtins/Unit/fixunsdfsivfp_test.c
+++ b/compiler-rt/test/builtins/Unit/fixunsdfsivfp_test.c
@@ -19,7 +19,7 @@
extern COMPILER_RT_ABI unsigned int __fixunsdfsivfp(double a);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__fixunsdfsivfp(double a)
{
unsigned int actual = __fixunsdfsivfp(a);
@@ -33,7 +33,7 @@ int test__fixunsdfsivfp(double a)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__fixunsdfsivfp(0.0))
return 1;
if (test__fixunsdfsivfp(1.0))
diff --git a/compiler-rt/test/builtins/Unit/fixunssfsivfp_test.c b/compiler-rt/test/builtins/Unit/fixunssfsivfp_test.c
index c8e45f408b6..9c8194ff0f2 100644
--- a/compiler-rt/test/builtins/Unit/fixunssfsivfp_test.c
+++ b/compiler-rt/test/builtins/Unit/fixunssfsivfp_test.c
@@ -18,7 +18,7 @@
extern unsigned int __fixunssfsivfp(float a);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__fixunssfsivfp(float a)
{
unsigned int actual = __fixunssfsivfp(a);
@@ -32,7 +32,7 @@ int test__fixunssfsivfp(float a)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__fixunssfsivfp(0.0))
return 1;
if (test__fixunssfsivfp(1.0))
diff --git a/compiler-rt/test/builtins/Unit/floatsidfvfp_test.c b/compiler-rt/test/builtins/Unit/floatsidfvfp_test.c
index e5ea3a4d4dc..8404a7ec6f7 100644
--- a/compiler-rt/test/builtins/Unit/floatsidfvfp_test.c
+++ b/compiler-rt/test/builtins/Unit/floatsidfvfp_test.c
@@ -19,7 +19,7 @@
extern COMPILER_RT_ABI double __floatsidfvfp(int a);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__floatsidfvfp(int a)
{
double actual = __floatsidfvfp(a);
@@ -33,7 +33,7 @@ int test__floatsidfvfp(int a)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__floatsidfvfp(0))
return 1;
if (test__floatsidfvfp(1))
diff --git a/compiler-rt/test/builtins/Unit/floatsisfvfp_test.c b/compiler-rt/test/builtins/Unit/floatsisfvfp_test.c
index ab21e2e7ff4..c41cf9d51ab 100644
--- a/compiler-rt/test/builtins/Unit/floatsisfvfp_test.c
+++ b/compiler-rt/test/builtins/Unit/floatsisfvfp_test.c
@@ -19,7 +19,7 @@
extern COMPILER_RT_ABI float __floatsisfvfp(int a);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__floatsisfvfp(int a)
{
float actual = __floatsisfvfp(a);
@@ -33,7 +33,7 @@ int test__floatsisfvfp(int a)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__floatsisfvfp(0))
return 1;
if (test__floatsisfvfp(1))
diff --git a/compiler-rt/test/builtins/Unit/floatunssidfvfp_test.c b/compiler-rt/test/builtins/Unit/floatunssidfvfp_test.c
index 75e4bbd6c21..1671c74bbd0 100644
--- a/compiler-rt/test/builtins/Unit/floatunssidfvfp_test.c
+++ b/compiler-rt/test/builtins/Unit/floatunssidfvfp_test.c
@@ -19,7 +19,7 @@
extern COMPILER_RT_ABI double __floatunssidfvfp(unsigned int a);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__floatunssidfvfp(unsigned int a)
{
double actual = __floatunssidfvfp(a);
@@ -33,7 +33,7 @@ int test__floatunssidfvfp(unsigned int a)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__floatunssidfvfp(0))
return 1;
if (test__floatunssidfvfp(1))
diff --git a/compiler-rt/test/builtins/Unit/floatunssisfvfp_test.c b/compiler-rt/test/builtins/Unit/floatunssisfvfp_test.c
index 47f837cc89a..506f3be51e9 100644
--- a/compiler-rt/test/builtins/Unit/floatunssisfvfp_test.c
+++ b/compiler-rt/test/builtins/Unit/floatunssisfvfp_test.c
@@ -18,7 +18,7 @@
extern COMPILER_RT_ABI float __floatunssisfvfp(unsigned int a);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__floatunssisfvfp(unsigned int a)
{
float actual = __floatunssisfvfp(a);
@@ -32,7 +32,7 @@ int test__floatunssisfvfp(unsigned int a)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__floatunssisfvfp(0))
return 1;
if (test__floatunssisfvfp(1))
diff --git a/compiler-rt/test/builtins/Unit/gedf2vfp_test.c b/compiler-rt/test/builtins/Unit/gedf2vfp_test.c
index e280ce0780a..341fd65d2b3 100644
--- a/compiler-rt/test/builtins/Unit/gedf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/gedf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __gedf2vfp(double a, double b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__gedf2vfp(double a, double b)
{
int actual = __gedf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__gedf2vfp(double a, double b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__gedf2vfp(0.0, 0.0))
return 1;
if (test__gedf2vfp(1.0, 0.0))
diff --git a/compiler-rt/test/builtins/Unit/gesf2vfp_test.c b/compiler-rt/test/builtins/Unit/gesf2vfp_test.c
index aa53eb73997..607d9880e45 100644
--- a/compiler-rt/test/builtins/Unit/gesf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/gesf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __gesf2vfp(float a, float b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__gesf2vfp(float a, float b)
{
int actual = __gesf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__gesf2vfp(float a, float b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__gesf2vfp(0.0, 0.0))
return 1;
if (test__gesf2vfp(1.1, 1.0))
diff --git a/compiler-rt/test/builtins/Unit/gtdf2vfp_test.c b/compiler-rt/test/builtins/Unit/gtdf2vfp_test.c
index fd54e0b4e59..1bf68bf1ae7 100644
--- a/compiler-rt/test/builtins/Unit/gtdf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/gtdf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __gtdf2vfp(double a, double b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__gtdf2vfp(double a, double b)
{
int actual = __gtdf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__gtdf2vfp(double a, double b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__gtdf2vfp(0.0, 0.0))
return 1;
if (test__gtdf2vfp(1.0, 0.0))
diff --git a/compiler-rt/test/builtins/Unit/gtsf2vfp_test.c b/compiler-rt/test/builtins/Unit/gtsf2vfp_test.c
index 2f4ad99a63d..8209647ce79 100644
--- a/compiler-rt/test/builtins/Unit/gtsf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/gtsf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __gtsf2vfp(float a, float b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__gtsf2vfp(float a, float b)
{
int actual = __gtsf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__gtsf2vfp(float a, float b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__gtsf2vfp(0.0, 0.0))
return 1;
if (test__gtsf2vfp(1.0, 0.0))
diff --git a/compiler-rt/test/builtins/Unit/ledf2vfp_test.c b/compiler-rt/test/builtins/Unit/ledf2vfp_test.c
index 5683590778c..2e1daf0448f 100644
--- a/compiler-rt/test/builtins/Unit/ledf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/ledf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __ledf2vfp(double a, double b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__ledf2vfp(double a, double b)
{
int actual = __ledf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__ledf2vfp(double a, double b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__ledf2vfp(0.0, 0.0))
return 1;
if (test__ledf2vfp(1.0, 1.0))
diff --git a/compiler-rt/test/builtins/Unit/lesf2vfp_test.c b/compiler-rt/test/builtins/Unit/lesf2vfp_test.c
index b5c20f61e8a..0f8939366c0 100644
--- a/compiler-rt/test/builtins/Unit/lesf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/lesf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __lesf2vfp(float a, float b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__lesf2vfp(float a, float b)
{
int actual = __lesf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__lesf2vfp(float a, float b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__lesf2vfp(0.0, 0.0))
return 1;
if (test__lesf2vfp(1.0, 1.0))
diff --git a/compiler-rt/test/builtins/Unit/ltdf2vfp_test.c b/compiler-rt/test/builtins/Unit/ltdf2vfp_test.c
index 7319397c5e4..fdbe9a17bc2 100644
--- a/compiler-rt/test/builtins/Unit/ltdf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/ltdf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __ltdf2vfp(double a, double b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__ltdf2vfp(double a, double b)
{
int actual = __ltdf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__ltdf2vfp(double a, double b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__ltdf2vfp(0.0, 0.0))
return 1;
if (test__ltdf2vfp(1.0, 1.0))
diff --git a/compiler-rt/test/builtins/Unit/ltsf2vfp_test.c b/compiler-rt/test/builtins/Unit/ltsf2vfp_test.c
index 2d920c95932..d4d65ba9295 100644
--- a/compiler-rt/test/builtins/Unit/ltsf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/ltsf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __ltsf2vfp(float a, float b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__ltsf2vfp(float a, float b)
{
int actual = __ltsf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__ltsf2vfp(float a, float b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__ltsf2vfp(0.0, 0.0))
return 1;
if (test__ltsf2vfp(-1.0, 1.0))
diff --git a/compiler-rt/test/builtins/Unit/muldf3vfp_test.c b/compiler-rt/test/builtins/Unit/muldf3vfp_test.c
index 766972d7d1d..024c9a8a87f 100644
--- a/compiler-rt/test/builtins/Unit/muldf3vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/muldf3vfp_test.c
@@ -17,7 +17,7 @@
#include <math.h>
-#if __arm__
+#if __arm__ && __VFP_FP__
extern COMPILER_RT_ABI double __muldf3vfp(double a, double b);
int test__muldf3vfp(double a, double b)
@@ -33,7 +33,7 @@ int test__muldf3vfp(double a, double b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__muldf3vfp(0.5, 10.0))
return 1;
if (test__muldf3vfp(-0.5, -2.0))
diff --git a/compiler-rt/test/builtins/Unit/mulsf3vfp_test.c b/compiler-rt/test/builtins/Unit/mulsf3vfp_test.c
index 5b0f6c14384..9fe88f29bad 100644
--- a/compiler-rt/test/builtins/Unit/mulsf3vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/mulsf3vfp_test.c
@@ -19,7 +19,7 @@
extern COMPILER_RT_ABI float __mulsf3vfp(float a, float b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__mulsf3vfp(float a, float b)
{
float actual = __mulsf3vfp(a, b);
@@ -33,7 +33,7 @@ int test__mulsf3vfp(float a, float b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__mulsf3vfp(0.5, 10.0))
return 1;
if (test__mulsf3vfp(-0.5, -2.0))
diff --git a/compiler-rt/test/builtins/Unit/nedf2vfp_test.c b/compiler-rt/test/builtins/Unit/nedf2vfp_test.c
index 2c440439963..69587d4689b 100644
--- a/compiler-rt/test/builtins/Unit/nedf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/nedf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __nedf2vfp(double a, double b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__nedf2vfp(double a, double b)
{
int actual = __nedf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__nedf2vfp(double a, double b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__nedf2vfp(0.0, 0.0))
return 1;
if (test__nedf2vfp(1.0, 1.0))
diff --git a/compiler-rt/test/builtins/Unit/negdf2vfp_test.c b/compiler-rt/test/builtins/Unit/negdf2vfp_test.c
index f673b92cfc8..72bde7c0184 100644
--- a/compiler-rt/test/builtins/Unit/negdf2vfp_test.c
+++ b/compiler-rt/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))
diff --git a/compiler-rt/test/builtins/Unit/negsf2vfp_test.c b/compiler-rt/test/builtins/Unit/negsf2vfp_test.c
index 9e47d89094c..1c9ba529219 100644
--- a/compiler-rt/test/builtins/Unit/negsf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/negsf2vfp_test.c
@@ -19,7 +19,7 @@
extern COMPILER_RT_ABI float __negsf2vfp(float a);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__negsf2vfp(float a)
{
float actual = __negsf2vfp(a);
@@ -33,7 +33,7 @@ int test__negsf2vfp(float a)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__negsf2vfp(1.0))
return 1;
if (test__negsf2vfp(HUGE_VALF))
diff --git a/compiler-rt/test/builtins/Unit/nesf2vfp_test.c b/compiler-rt/test/builtins/Unit/nesf2vfp_test.c
index c085bf8b41f..0ebcd6721c9 100644
--- a/compiler-rt/test/builtins/Unit/nesf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/nesf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __nesf2vfp(float a, float b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__nesf2vfp(float a, float b)
{
int actual = __nesf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__nesf2vfp(float a, float b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__nesf2vfp(0.0, 0.0))
return 1;
if (test__nesf2vfp(1.0, 1.0))
diff --git a/compiler-rt/test/builtins/Unit/subdf3vfp_test.c b/compiler-rt/test/builtins/Unit/subdf3vfp_test.c
index 6e8d5a1aaa5..398494e1d46 100644
--- a/compiler-rt/test/builtins/Unit/subdf3vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/subdf3vfp_test.c
@@ -17,7 +17,7 @@
#include <math.h>
-#if __arm__
+#if __arm__ && __VFP_FP__
extern COMPILER_RT_ABI double __subdf3vfp(double a, double b);
int test__subdf3vfp(double a, double b)
@@ -33,7 +33,7 @@ int test__subdf3vfp(double a, double b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__subdf3vfp(1.0, 1.0))
return 1;
if (test__subdf3vfp(1234.567, 765.4321))
diff --git a/compiler-rt/test/builtins/Unit/subsf3vfp_test.c b/compiler-rt/test/builtins/Unit/subsf3vfp_test.c
index fe60058de6f..8d529e52533 100644
--- a/compiler-rt/test/builtins/Unit/subsf3vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/subsf3vfp_test.c
@@ -19,7 +19,7 @@
extern COMPILER_RT_ABI float __subsf3vfp(float a, float b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__subsf3vfp(float a, float b)
{
float actual = __subsf3vfp(a, b);
@@ -33,7 +33,7 @@ int test__subsf3vfp(float a, float b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__subsf3vfp(1.0, 1.0))
return 1;
if (test__subsf3vfp(1234.567, 765.4321))
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))
diff --git a/compiler-rt/test/builtins/Unit/unorddf2vfp_test.c b/compiler-rt/test/builtins/Unit/unorddf2vfp_test.c
index d49d567896a..be17e41138f 100644
--- a/compiler-rt/test/builtins/Unit/unorddf2vfp_test.c
+++ b/compiler-rt/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))
diff --git a/compiler-rt/test/builtins/Unit/unordsf2vfp_test.c b/compiler-rt/test/builtins/Unit/unordsf2vfp_test.c
index 3cadc81c708..e40d71f77f0 100644
--- a/compiler-rt/test/builtins/Unit/unordsf2vfp_test.c
+++ b/compiler-rt/test/builtins/Unit/unordsf2vfp_test.c
@@ -19,7 +19,7 @@
extern int __unordsf2vfp(float a, float b);
-#if __arm__
+#if __arm__ && __VFP_FP__
int test__unordsf2vfp(float a, float b)
{
int actual = __unordsf2vfp(a, b);
@@ -33,7 +33,7 @@ int test__unordsf2vfp(float a, float b)
int main()
{
-#if __arm__
+#if __arm__ && __VFP_FP__
if (test__unordsf2vfp(0.0, NAN))
return 1;
if (test__unordsf2vfp(NAN, 1.0))
OpenPOWER on IntegriCloud