* [PATCH] ARC: Fix max ULP for cosine test
@ 2016-08-23 9:41 Eugeniy Paltsev
2016-09-10 12:05 ` Waldemar Brodkorb
0 siblings, 1 reply; 2+ messages in thread
From: Eugeniy Paltsev @ 2016-08-23 9:41 UTC (permalink / raw)
To: linux-snps-arc
Max ULP for "cos (M_PI_6l * 2.0) == 0.5" in "test-double" sub-test
is set to "0" for ARC. It causes "test-double" test failure.
I realized that this sub-test on ARM gets completely same results.
But it doesn't fails on ARM because max ULP is set to "1" for ARM.
I am wondering, if it was done for any special reason?
Otherwise, set max ULP for "cos (M_PI_6l * 2.0) == 0.5" test to
"1" instead of "0" for ARC.
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev at synopsys.com>
---
test/math/libm-test-ulps-arc | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/math/libm-test-ulps-arc b/test/math/libm-test-ulps-arc
index 7139447..46b2ac5 100644
--- a/test/math/libm-test-ulps-arc
+++ b/test/math/libm-test-ulps-arc
@@ -2,6 +2,7 @@
# cos
Test "cos (M_PI_6l * 2.0) == 0.5":
+double: 1
idouble: 1
Test "cos (M_PI_6l * 4.0) == -0.5":
double: 2
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARC: Fix max ULP for cosine test
2016-08-23 9:41 [PATCH] ARC: Fix max ULP for cosine test Eugeniy Paltsev
@ 2016-09-10 12:05 ` Waldemar Brodkorb
0 siblings, 0 replies; 2+ messages in thread
From: Waldemar Brodkorb @ 2016-09-10 12:05 UTC (permalink / raw)
To: linux-snps-arc
Hi Eugeniy,
Eugeniy Paltsev wrote,
> Max ULP for "cos (M_PI_6l * 2.0) == 0.5" in "test-double" sub-test
> is set to "0" for ARC. It causes "test-double" test failure.
>
> I realized that this sub-test on ARM gets completely same results.
> But it doesn't fails on ARM because max ULP is set to "1" for ARM.
>
> I am wondering, if it was done for any special reason?
>
> Otherwise, set max ULP for "cos (M_PI_6l * 2.0) == 0.5" test to
> "1" instead of "0" for ARC.
Thanks applied and pushed. Normally I autogenerate the ULPS files
with tst-float -u .. and then merging with the perl script.
best regards
Waldemar
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-10 12:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-23 9:41 [PATCH] ARC: Fix max ULP for cosine test Eugeniy Paltsev
2016-09-10 12:05 ` Waldemar Brodkorb
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.