diff options
| author | grischka <grischka> | 2014-05-06 18:24:41 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2014-05-06 18:24:41 +0200 |
| commit | 899d26605c5276964ac2ae1f8238a75a5afeb480 (patch) | |
| tree | 21aa546c6b9e22dadb38066a97d0968260445607 /tests/abitest.c | |
| parent | 5e56fb635a23484d8fda8b54a40900d0a54b0ba1 (diff) | |
| download | tinycc-899d26605c5276964ac2ae1f8238a75a5afeb480.tar.gz tinycc-899d26605c5276964ac2ae1f8238a75a5afeb480.tar.bz2 | |
Revert "update static void parse_number()"
because:
- Constructing fp numbers isn't quite trivial
- 3 additional calls to strchr per number is noticeable slow
Also: exclude abitest.c:ret_longdouble_test2 on _WIN32
for mixed gcc/tcc scenario
test case:
- make -k test (on win32):
-2.120000 0.500000 23000000000.000000
+2.120000 0.500000 22999999999.999996
...
ret_longdouble_test2... failure
This reverts 857f7dbfa65179e6690dbee7ab915fb4458cee11
and deaee6c2496ecb25858290405fef8ef79aece979
Diffstat (limited to 'tests/abitest.c')
| -rw-r--r-- | tests/abitest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/abitest.c b/tests/abitest.c index 3ad707a..e2978b0 100644 --- a/tests/abitest.c +++ b/tests/abitest.c @@ -486,7 +486,10 @@ int main(int argc, char **argv) { RUN_TEST(ret_2float_test); RUN_TEST(ret_2double_test); RUN_TEST(ret_longlong_test2); +#if !defined _WIN32 || !defined __GNUC__ + /* on win32, 'long double' is 10-byte with gcc, but is 'double' with tcc/msvc */ RUN_TEST(ret_longdouble_test2); +#endif RUN_TEST(reg_pack_test); RUN_TEST(reg_pack_longlong_test); RUN_TEST(sret_test); |
