From 43e4a406b4675cd312453697c7a19f2bd63c3b55 Mon Sep 17 00:00:00 2001 From: seyko Date: Tue, 3 Mar 2015 17:28:13 +0300 Subject: [PATCH] Disable floating-point test for ARM soft-float From: Matteo Cypriani Date: Fri, 5 Sep 2014 23:22:56 -0400 Subject: Disable floating-point test for ARM soft-float tcc is not yet capable of doing softfloat floating-point operations on ARM, therefore we disable this test for these platforms. Note that tcc displays a warning to warn ARM users about this limitation (debian) --- tests/tcctest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tcctest.c b/tests/tcctest.c index 30c9518..49fa587 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -1760,6 +1760,7 @@ double ftab1[3] = { 1.2, 3.4, -5.6 }; void float_test(void) { +#if !defined(__arm__) || defined(__ARM_PCS_VFP) float fa, fb; double da, db; int a; @@ -1785,6 +1786,7 @@ void float_test(void) b = 4000000000; db = b; printf("db = %f\n", db); +#endif } int fib(int n)