diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-06-11 18:16:59 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-06-11 18:16:59 +0000 |
commit | 90579156da340660a42e22e794a3c03ac1b50112 (patch) | |
tree | 1483e6ba43e5be0f97505da31a50af0865ee16fe /test | |
parent | 70b4e3ee53373a02bcc9f6530a28537b6f2edeac (diff) |
vendor/compiler-rt/compiler-rt-release_801-r366581vendor/compiler-rt/compiler-rt-release_80-r364487vendor/compiler-rt/compiler-rt-release_80-r363030vendor/compiler-rt-80
Notes
Diffstat (limited to 'test')
-rw-r--r-- | test/builtins/Unit/compiler_rt_logb_test.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/builtins/Unit/compiler_rt_logb_test.c b/test/builtins/Unit/compiler_rt_logb_test.c index 79676598089c..9625881316bb 100644 --- a/test/builtins/Unit/compiler_rt_logb_test.c +++ b/test/builtins/Unit/compiler_rt_logb_test.c @@ -37,6 +37,10 @@ double cases[] = { }; int main() { + // Do not the run the compiler-rt logb test case if using GLIBC version + // < 2.23. Older versions might not compute to the same value as the + // compiler-rt value. +#if !defined(__GLIBC__) || (defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 23)) const unsigned N = sizeof(cases) / sizeof(cases[0]); unsigned i; for (i = 0; i < N; ++i) { @@ -58,6 +62,9 @@ int main() { if (test__compiler_rt_logb(fromRep(signBit ^ x))) return 1; x >>= 1; } +#else + printf("skipped\n"); +#endif return 0; } |