Skip to content

Commit 75fa192

Browse files
committed
Allow more spurious underflow exceptions from csqrt and Bessel functions.
1 parent 771766d commit 75fa192

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2012-06-14 Joseph Myers <[email protected]>
2+
3+
* libm_test.inc (csqrt_test): Allow more spurious underflow
4+
exceptions.
5+
(j0_test): Likewise.
6+
(j1_test): Likewise.
7+
(y0_test): Likewise.
8+
(y1_test): Likewise.
9+
110
2012-06-13 Carlos O'Donell <[email protected]>
211

312
* po/Makefile (libc.pot): Use UTF-8 charset.

math/libm-test.inc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3211,7 +3211,7 @@ csqrt_test (void)
32113211
TEST_c_c (csqrt, 0x1.fffffffffffffp+1023L, 0x1p+1023L, 1.379778091031440685006200821918878702861e+154L, 3.257214233483129514781233066898042490248e+153L);
32123212
/* Bug 14157: spurious exception may occur. */
32133213
TEST_c_c (csqrt, 0x1p-1074L, 0x1p-1074L, 2.442109726130830256743814843868934877597e-162L, 1.011554969366634726113090867589031782487e-162L, UNDERFLOW_EXCEPTION_OK);
3214-
TEST_c_c (csqrt, 0x1p-1073L, 0x1p-1073L, 3.453664695497464982856905711457966660085e-162L, 1.430554756764195530630723976279903095110e-162L);
3214+
TEST_c_c (csqrt, 0x1p-1073L, 0x1p-1073L, 3.453664695497464982856905711457966660085e-162L, 1.430554756764195530630723976279903095110e-162L, UNDERFLOW_EXCEPTION_OK);
32153215
#endif
32163216

32173217
#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384
@@ -4352,7 +4352,8 @@ j0_test (void)
43524352
TEST_f_f (j0, 0x1.d7ce3ap+107L, 2.775523647291230802651040996274861694514e-17L, UNDERFLOW_EXCEPTION_OK);
43534353

43544354
#ifndef TEST_FLOAT
4355-
TEST_f_f (j0, -0x1.001000001p+593L, -3.927269966354206207832593635798954916263e-90L);
4355+
/* Bug 14155: spurious exception may occur. */
4356+
TEST_f_f (j0, -0x1.001000001p+593L, -3.927269966354206207832593635798954916263e-90L, UNDERFLOW_EXCEPTION_OK);
43564357
#endif
43574358

43584359
END (j0);
@@ -4393,7 +4394,8 @@ j1_test (void)
43934394
TEST_f_f (j1, 0x1.3ffp+74L, 1.818984347516051243459364437186082741567e-12L);
43944395

43954396
#ifndef TEST_FLOAT
4396-
TEST_f_f (j1, 0x1.ff00000000002p+840L, 1.846591691699331493194965158699937660696e-127L);
4397+
/* Bug 14155: spurious exception may occur. */
4398+
TEST_f_f (j1, 0x1.ff00000000002p+840L, 1.846591691699331493194965158699937660696e-127L, UNDERFLOW_EXCEPTION_OK);
43974399
#endif
43984400

43994401
END (j1);
@@ -8441,7 +8443,8 @@ y0_test (void)
84418443
TEST_f_f (y0, 0x1.3ffp+74L, 1.818984347516051243459467456433028748678e-12L);
84428444

84438445
#ifndef TEST_FLOAT
8444-
TEST_f_f (y0, 0x1.ff00000000002p+840L, 1.846591691699331493194965158699937660696e-127L);
8446+
/* Bug 14155: spurious exception may occur. */
8447+
TEST_f_f (y0, 0x1.ff00000000002p+840L, 1.846591691699331493194965158699937660696e-127L, UNDERFLOW_EXCEPTION_OK);
84458448
#endif
84468449

84478450
END (y0);
@@ -8483,7 +8486,8 @@ y1_test (void)
84838486
TEST_f_f (y1, 0x1.27e204p+99L, -8.881610148467797208469612080785210013461e-16L, UNDERFLOW_EXCEPTION_OK);
84848487

84858488
#ifndef TEST_FLOAT
8486-
TEST_f_f (y1, 0x1.001000001p+593L, 3.927269966354206207832593635798954916263e-90L);
8489+
/* Bug 14155: spurious exception may occur. */
8490+
TEST_f_f (y1, 0x1.001000001p+593L, 3.927269966354206207832593635798954916263e-90L, UNDERFLOW_EXCEPTION_OK);
84878491
#endif
84888492

84898493
END (y1);

0 commit comments

Comments
 (0)