Blob Blame History Raw
// Copyright (C) 1988-1994 Sun Microsystems, Inc. 2550 Garcia Avenue
// Mountain View, California  94043 All rights reserved.
//
// Any person is hereby authorized to download, copy, use, create bug fixes,
// and distribute, subject to the following conditions:
//
// 	1.  the software may not be redistributed for a fee except as
// 	    reasonable to cover media costs;
// 	2.  any copy of the software must include this notice, as well as
// 	    any other embedded copyright notices; and
// 	3.  any distribution of this software or derivative works thereof
// 	    must comply with all applicable U.S. export control laws.
//
// THE SOFTWARE IS MADE AVAILABLE "AS IS" AND WITHOUT EXPRESS OR IMPLIED
// WARRANTY OF ANY KIND, INCLUDING BUT NOT LIMITED TO THE IMPLIED
// WARRANTIES OF DESIGN, MERCHANTIBILITY, FITNESS FOR A PARTICULAR
// PURPOSE, NON-INFRINGEMENT, PERFORMANCE OR CONFORMANCE TO
// SPECIFICATIONS.
//
// BY DOWNLOADING AND/OR USING THIS SOFTWARE, THE USER WAIVES ALL CLAIMS
// AGAINST SUN MICROSYSTEMS, INC. AND ITS AFFILIATED COMPANIES IN ANY
// JURISDICTION, INCLUDING BUT NOT LIMITED TO CLAIMS FOR DAMAGES OR
// EQUITABLE RELIEF BASED ON LOSS OF DATA, AND SPECIFICALLY WAIVES EVEN
// UNKNOWN OR UNANTICIPATED CLAIMS OR LOSSES, PRESENT AND FUTURE.
//
// IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS AFFILIATED
// COMPANIES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL,
// INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF IT HAS BEEN ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGES.
//
// This file is provided with no support and without any obligation on the
// part of Sun Microsystems, Inc. ("Sun") or any of its affiliated
// companies to assist in its use, correction, modification or
// enhancement.  Nevertheless, and without creating any obligation on its
// part, Sun welcomes your comments concerning the software and requests
// that they be sent to fdlibm-comments@sunpro.sun.com.
// logs(+fmax) is finite
T(RN, 0x1.fffffep+127,    0x1.62e43p+6,    0x1.45c61p-5, INEXACT)
T(RZ, 0x1.fffffep+127,   0x1.62e42ep+6,  -0x1.eba39ep-1, INEXACT)
T(RU, 0x1.fffffep+127,    0x1.62e43p+6,    0x1.45c61p-5, INEXACT)
T(RD, 0x1.fffffep+127,   0x1.62e42ep+6,  -0x1.eba39ep-1, INEXACT)
// logs(1+tiny) is tiny - tiny*tiny/2
T(RN,    0x1.00004p+0,   0x1.ffffcp-19, -0x1.555516p-14, INEXACT)
T(RN,          0x1p+0,          0x0p+0,          0x0p+0, 0)
T(RN,    0x1.ffff8p-1,  -0x1.00002p-18,  0x1.555596p-15, INEXACT)
T(RZ,    0x1.00004p+0,   0x1.ffffcp-19, -0x1.555516p-14, INEXACT)
T(RZ,          0x1p+0,          0x0p+0,          0x0p+0, 0)
T(RZ,    0x1.ffff8p-1,  -0x1.00002p-18,  0x1.555596p-15, INEXACT)
T(RU,    0x1.00004p+0,  0x1.ffffc2p-19,   0x1.fff556p-1, INEXACT)
T(RU,          0x1p+0,          0x0p+0,          0x0p+0, 0)
T(RU,    0x1.ffff8p-1,  -0x1.00002p-18,  0x1.555596p-15, INEXACT)
T(RD,    0x1.00004p+0,   0x1.ffffcp-19, -0x1.555516p-14, INEXACT)
T(RD,          0x1p+0,          0x0p+0,          0x0p+0, 0)
T(RD,    0x1.ffff8p-1, -0x1.000022p-18,  -0x1.fffaaap-1, INEXACT)
// logs(min) is finite
T(RN,        0x1p-126,   -0x1.5d58ap+6,   -0x1.a035ep-2, INEXACT)
T(RN,        0x1p-149,   -0x1.9d1dap+6,  -0x1.985c48p-4, INEXACT)
T(RZ,        0x1p-126,  -0x1.5d589ep+6,    0x1.2fe51p-1, INEXACT)
T(RZ,        0x1p-149,  -0x1.9d1d9ep+6,   0x1.ccf478p-1, INEXACT)
T(RU,        0x1p-126,  -0x1.5d589ep+6,    0x1.2fe51p-1, INEXACT)
T(RU,        0x1p-149,  -0x1.9d1d9ep+6,   0x1.ccf478p-1, INEXACT)
T(RD,        0x1p-126,   -0x1.5d58ap+6,   -0x1.a035ep-2, INEXACT)
T(RD,        0x1p-149,   -0x1.9d1dap+6,  -0x1.985c48p-4, INEXACT)
// random arguments between 0 100
T(RN,   0x1.24844cp+5,   0x1.ccaeacp+1,    0x1.df05ep-3, INEXACT)
T(RN,     0x1.5672p+6,    0x1.1cc9dp+2,   0x1.8401eap-4, INEXACT)
T(RN,     0x1.7817p+6,   0x1.22c942p+2,   0x1.b6c83cp-3, INEXACT)
T(RN,    0x1.09b75p+4,   0x1.67a8d2p+1,  -0x1.b8338cp-2, INEXACT)
T(RN,   0x1.23a38ep+5,   0x1.cc4c2ep+1,   0x1.3204fap-4, INEXACT)
T(RN,   0x1.804882p+5,   0x1.ef9bacp+1,  -0x1.a5066ap-2, INEXACT)
T(RN,   0x1.3baa8ep+6,   0x1.1793b8p+2,  -0x1.63d432p-5, INEXACT)
T(RN,   0x1.730484p+6,   0x1.21eacap+2,      0x1.30ap-2, INEXACT)
T(RN,   0x1.4cc5b2p+5,   0x1.dd2fa8p+1,    0x1.5c009p-2, INEXACT)
T(RN,   0x1.0ca4d4p+1,   0x1.7b930ep-1,   0x1.0ebe34p-2, INEXACT)
// logs(nan) is nan
T(RN,             nan,             nan,          0x0p+0, 0)
// logs(+inf) is inf
T(RN,             inf,             inf,          0x0p+0, 0)
// logs(+-0) is -inf
T(RN,          0x0p+0,            -inf,          0x0p+0, DIVBYZERO)
T(RN,         -0x0p+0,            -inf,          0x0p+0, DIVBYZERO)
// logs(-ve) is nan
T(RN,       -0x1p-149,             nan,          0x0p+0, INVALID)
T(RN,       -0x1p-126,             nan,          0x0p+0, INVALID)
T(RN,-0x1.fffffep+127,             nan,          0x0p+0, INVALID)
T(RN,            -inf,             nan,          0x0p+0, INVALID)
T(RD,             inf,             inf,          0x0p+0, 0)
T(RD,          0x0p+0,            -inf,          0x0p+0, DIVBYZERO)
T(RD,         -0x0p+0,            -inf,          0x0p+0, DIVBYZERO)
T(RD,   0x1.fffffap-1, -0x1.800004p-23,  -0x1.bffffcp-1, INEXACT)
T(RD,   0x1.fffffcp-1, -0x1.000002p-23,  -0x1.fffffep-2, INEXACT)
T(RD,   0x1.fffffep-1, -0x1.000002p-24,       -0x1.8p-1, INEXACT)
T(RD,   0x1.000002p+0,  0x1.fffffep-24, -0x1.555554p-24, INEXACT)
T(RD,   0x1.000004p+0,  0x1.fffffcp-23, -0x1.555552p-22, INEXACT)
T(RD,   0x1.000008p+0,  0x1.fffff8p-22, -0x1.55554ep-20, INEXACT)
T(RD,             nan,             nan,          0x0p+0, 0)
T(RD,             nan,             nan,          0x0p+0, 0)
T(RD,       -0x1p-149,             nan,          0x0p+0, INVALID)
T(RD,       -0x1p-148,             nan,          0x0p+0, INVALID)
T(RD,     -0x1.cp-147,             nan,          0x0p+0, INVALID)
T(RD,       -0x1p-128,             nan,          0x0p+0, INVALID)
T(RD,       -0x1p-127,             nan,          0x0p+0, INVALID)
T(RD,-0x1.fffff8p-127,             nan,          0x0p+0, INVALID)
T(RD,-0x1.fffffcp-127,             nan,          0x0p+0, INVALID)
T(RD,       -0x1p-126,             nan,          0x0p+0, INVALID)
T(RD,-0x1.000002p-126,             nan,          0x0p+0, INVALID)
T(RD,-0x1.000004p-126,             nan,          0x0p+0, INVALID)
T(RD,       -0x1p-125,             nan,          0x0p+0, INVALID)
T(RD,       -0x1p-124,             nan,          0x0p+0, INVALID)
T(RD,        -0x1p-23,             nan,          0x0p+0, INVALID)
T(RD,        -0x1p-21,             nan,          0x0p+0, INVALID)
T(RD,         -0x1p-2,             nan,          0x0p+0, INVALID)
T(RD,         -0x1p-1,             nan,          0x0p+0, INVALID)
T(RD,  -0x1.fffff4p-1,             nan,          0x0p+0, INVALID)
T(RD,  -0x1.fffff8p-1,             nan,          0x0p+0, INVALID)
T(RD,  -0x1.fffffcp-1,             nan,          0x0p+0, INVALID)
T(RD,  -0x1.fffffep-1,             nan,          0x0p+0, INVALID)
T(RD,         -0x1p+0,             nan,          0x0p+0, INVALID)
T(RD,  -0x1.000002p+0,             nan,          0x0p+0, INVALID)
T(RD,  -0x1.000004p+0,             nan,          0x0p+0, INVALID)
T(RD,  -0x1.000008p+0,             nan,          0x0p+0, INVALID)
T(RD,         -0x1p+1,             nan,          0x0p+0, INVALID)
T(RD,  -0x1.000004p+1,             nan,          0x0p+0, INVALID)
T(RD,  -0x1.fffff6p+1,             nan,          0x0p+0, INVALID)
T(RD,         -0x1p+2,             nan,          0x0p+0, INVALID)
T(RD,       -0x1p+126,             nan,          0x0p+0, INVALID)
T(RD,-0x1.000004p+126,             nan,          0x0p+0, INVALID)
T(RD,-0x1.000008p+126,             nan,          0x0p+0, INVALID)
T(RD,       -0x1p+127,             nan,          0x0p+0, INVALID)
T(RD,-0x1.000004p+127,             nan,          0x0p+0, INVALID)
T(RD,-0x1.fffffcp+127,             nan,          0x0p+0, INVALID)
T(RD,-0x1.fffffep+127,             nan,          0x0p+0, INVALID)
T(RD,            -inf,             nan,          0x0p+0, INVALID)
T(RD,   0x1.ffffeep-1, -0x1.200006p-21,  -0x1.dfffc4p-2, INEXACT)
T(RD,    0x1.fffffp-1, -0x1.000006p-21,  -0x1.ffffeap-1, INEXACT)
T(RD,   0x1.fffff2p-1, -0x1.c00008p-22,  -0x1.dfffe4p-1, INEXACT)
T(RD,   0x1.fffff4p-1, -0x1.800006p-22,  -0x1.7fffeep-1, INEXACT)
T(RD,   0x1.fffff6p-1, -0x1.400004p-22,  -0x1.bfffecp-2, INEXACT)
T(RD,   0x1.fffff8p-1, -0x1.000004p-22,  -0x1.fffffap-1, INEXACT)
T(RD,   0x1.fffff8p-1, -0x1.000004p-22,  -0x1.fffffap-1, INEXACT)
T(RD,   0x1.000006p+0,  0x1.7ffffap-22,  -0x1.800012p-1, INEXACT)
T(RD,   0x1.00000ap+0,  0x1.3ffff8p-21,  -0x1.c0002ap-1, INEXACT)
T(RD,   0x1.00000ep+0,  0x1.bffff2p-21,  -0x1.c00072p-1, INEXACT)
T(RD,    0x1.00001p+0,   0x1.fffffp-21, -0x1.555546p-18, INEXACT)
T(RD,   0x1.000012p+0,  0x1.1ffff4p-20,  -0x1.e0007ap-1, INEXACT)
T(RN,   0x1.ffffeep-1, -0x1.200006p-21,  -0x1.dfffc4p-2, INEXACT)
T(RN,    0x1.fffffp-1, -0x1.000004p-21,  0x1.55555ep-21, INEXACT)
T(RN,   0x1.fffff2p-1, -0x1.c00006p-22,   0x1.0000e4p-4, INEXACT)
T(RN,   0x1.fffff4p-1, -0x1.800004p-22,   0x1.000024p-2, INEXACT)
T(RN,   0x1.fffff6p-1, -0x1.400004p-22,  -0x1.bfffecp-2, INEXACT)
T(RN,   0x1.fffff8p-1, -0x1.000002p-22,  0x1.55555ap-23, INEXACT)
T(RN,   0x1.fffffap-1, -0x1.800002p-23,   0x1.000012p-3, INEXACT)
T(RN,   0x1.fffffep-1,        -0x1p-24,          0x1p-2, INEXACT)
T(RN,   0x1.000002p+0,  0x1.fffffep-24, -0x1.555554p-24, INEXACT)
T(RN,   0x1.000004p+0,  0x1.fffffcp-23, -0x1.555552p-22, INEXACT)
T(RN,   0x1.000006p+0,  0x1.7ffffcp-22,   0x1.ffffb8p-3, INEXACT)
T(RN,   0x1.000008p+0,  0x1.fffff8p-22, -0x1.55554ep-20, INEXACT)
T(RN,   0x1.00000ap+0,  0x1.3ffffap-21,   0x1.fffeb2p-4, INEXACT)
T(RN,   0x1.00000ep+0,  0x1.bffff4p-21,   0x1.fffc6ep-4, INEXACT)
T(RN,    0x1.00001p+0,   0x1.fffffp-21, -0x1.555546p-18, INEXACT)
T(RN,   0x1.000012p+0,  0x1.1ffff6p-20,   0x1.fff868p-5, INEXACT)
T(RN,             nan,             nan,          0x0p+0, 0)
T(RN,       -0x1p-148,             nan,          0x0p+0, INVALID)
T(RN,     -0x1.cp-147,             nan,          0x0p+0, INVALID)
T(RN,       -0x1p-128,             nan,          0x0p+0, INVALID)
T(RN,       -0x1p-127,             nan,          0x0p+0, INVALID)
T(RN,-0x1.fffff8p-127,             nan,          0x0p+0, INVALID)
T(RN,-0x1.fffffcp-127,             nan,          0x0p+0, INVALID)
T(RN,-0x1.000002p-126,             nan,          0x0p+0, INVALID)
T(RN,-0x1.000004p-126,             nan,          0x0p+0, INVALID)
T(RN,       -0x1p-125,             nan,          0x0p+0, INVALID)
T(RN,       -0x1p-124,             nan,          0x0p+0, INVALID)
T(RN,        -0x1p-23,             nan,          0x0p+0, INVALID)
T(RN,        -0x1p-21,             nan,          0x0p+0, INVALID)
T(RN,         -0x1p-2,             nan,          0x0p+0, INVALID)
T(RN,         -0x1p-1,             nan,          0x0p+0, INVALID)
T(RN,  -0x1.fffff4p-1,             nan,          0x0p+0, INVALID)
T(RN,  -0x1.fffff8p-1,             nan,          0x0p+0, INVALID)
T(RN,  -0x1.fffffcp-1,             nan,          0x0p+0, INVALID)
T(RN,  -0x1.fffffep-1,             nan,          0x0p+0, INVALID)
T(RN,         -0x1p+0,             nan,          0x0p+0, INVALID)
T(RN,  -0x1.000002p+0,             nan,          0x0p+0, INVALID)
T(RN,  -0x1.000004p+0,             nan,          0x0p+0, INVALID)
T(RN,  -0x1.000008p+0,             nan,          0x0p+0, INVALID)
T(RN,         -0x1p+1,             nan,          0x0p+0, INVALID)
T(RN,  -0x1.000004p+1,             nan,          0x0p+0, INVALID)
T(RN,  -0x1.fffff6p+1,             nan,          0x0p+0, INVALID)
T(RN,         -0x1p+2,             nan,          0x0p+0, INVALID)
T(RN,       -0x1p+126,             nan,          0x0p+0, INVALID)
T(RN,-0x1.000004p+126,             nan,          0x0p+0, INVALID)
T(RN,-0x1.000008p+126,             nan,          0x0p+0, INVALID)
T(RN,       -0x1p+127,             nan,          0x0p+0, INVALID)
T(RN,-0x1.000004p+127,             nan,          0x0p+0, INVALID)
T(RN,-0x1.fffffcp+127,             nan,          0x0p+0, INVALID)
T(RU,             inf,             inf,          0x0p+0, 0)
T(RU,          0x0p+0,            -inf,          0x0p+0, DIVBYZERO)
T(RU,         -0x0p+0,            -inf,          0x0p+0, DIVBYZERO)
T(RU,   0x1.fffffap-1, -0x1.800002p-23,   0x1.000012p-3, INEXACT)
T(RU,   0x1.fffffcp-1,        -0x1p-23,   0x1.000002p-1, INEXACT)
T(RU,   0x1.fffffep-1,        -0x1p-24,          0x1p-2, INEXACT)
T(RU,   0x1.000002p+0,         0x1p-23,   0x1.fffffep-2, INEXACT)
T(RU,   0x1.000004p+0,  0x1.fffffep-23,   0x1.fffff6p-1, INEXACT)
T(RU,   0x1.000008p+0,  0x1.fffffap-22,   0x1.ffffd6p-1, INEXACT)
T(RU,             nan,             nan,          0x0p+0, 0)
T(RU,             nan,             nan,          0x0p+0, 0)
T(RU,       -0x1p-149,             nan,          0x0p+0, INVALID)
T(RU,       -0x1p-148,             nan,          0x0p+0, INVALID)
T(RU,     -0x1.cp-147,             nan,          0x0p+0, INVALID)
T(RU,       -0x1p-128,             nan,          0x0p+0, INVALID)
T(RU,       -0x1p-127,             nan,          0x0p+0, INVALID)
T(RU,-0x1.fffff8p-127,             nan,          0x0p+0, INVALID)
T(RU,-0x1.fffffcp-127,             nan,          0x0p+0, INVALID)
T(RU,       -0x1p-126,             nan,          0x0p+0, INVALID)
T(RU,-0x1.000002p-126,             nan,          0x0p+0, INVALID)
T(RU,-0x1.000004p-126,             nan,          0x0p+0, INVALID)
T(RU,       -0x1p-125,             nan,          0x0p+0, INVALID)
T(RU,       -0x1p-124,             nan,          0x0p+0, INVALID)
T(RU,        -0x1p-23,             nan,          0x0p+0, INVALID)
T(RU,        -0x1p-21,             nan,          0x0p+0, INVALID)
T(RU,         -0x1p-2,             nan,          0x0p+0, INVALID)
T(RU,         -0x1p-1,             nan,          0x0p+0, INVALID)
T(RU,  -0x1.fffff4p-1,             nan,          0x0p+0, INVALID)
T(RU,  -0x1.fffff8p-1,             nan,          0x0p+0, INVALID)
T(RU,  -0x1.fffffcp-1,             nan,          0x0p+0, INVALID)
T(RU,  -0x1.fffffep-1,             nan,          0x0p+0, INVALID)
T(RU,         -0x1p+0,             nan,          0x0p+0, INVALID)
T(RU,  -0x1.000002p+0,             nan,          0x0p+0, INVALID)
T(RU,  -0x1.000004p+0,             nan,          0x0p+0, INVALID)
T(RU,  -0x1.000008p+0,             nan,          0x0p+0, INVALID)
T(RU,         -0x1p+1,             nan,          0x0p+0, INVALID)
T(RU,  -0x1.000004p+1,             nan,          0x0p+0, INVALID)
T(RU,  -0x1.fffff6p+1,             nan,          0x0p+0, INVALID)
T(RU,         -0x1p+2,             nan,          0x0p+0, INVALID)
T(RU,       -0x1p+126,             nan,          0x0p+0, INVALID)
T(RU,-0x1.000004p+126,             nan,          0x0p+0, INVALID)
T(RU,-0x1.000008p+126,             nan,          0x0p+0, INVALID)
T(RU,       -0x1p+127,             nan,          0x0p+0, INVALID)
T(RU,-0x1.000004p+127,             nan,          0x0p+0, INVALID)
T(RU,-0x1.fffffcp+127,             nan,          0x0p+0, INVALID)
T(RU,-0x1.fffffep+127,             nan,          0x0p+0, INVALID)
T(RU,            -inf,             nan,          0x0p+0, INVALID)
T(RU,   0x1.ffffeep-1, -0x1.200004p-21,   0x1.10001ep-1, INEXACT)
T(RU,    0x1.fffffp-1, -0x1.000004p-21,  0x1.55555ep-21, INEXACT)
T(RU,   0x1.fffff2p-1, -0x1.c00006p-22,   0x1.0000e4p-4, INEXACT)
T(RU,   0x1.fffff4p-1, -0x1.800004p-22,   0x1.000024p-2, INEXACT)
T(RU,   0x1.fffff6p-1, -0x1.400002p-22,   0x1.20000ap-1, INEXACT)
T(RU,   0x1.fffff8p-1, -0x1.000002p-22,  0x1.55555ap-23, INEXACT)
T(RU,   0x1.000006p+0,  0x1.7ffffcp-22,   0x1.ffffb8p-3, INEXACT)
T(RU,   0x1.00000ap+0,  0x1.3ffffap-21,   0x1.fffeb2p-4, INEXACT)
T(RU,   0x1.00000ep+0,  0x1.bffff4p-21,   0x1.fffc6ep-4, INEXACT)
T(RU,    0x1.00001p+0,  0x1.fffff2p-21,   0x1.ffff56p-1, INEXACT)
T(RU,   0x1.000012p+0,  0x1.1ffff6p-20,   0x1.fff868p-5, INEXACT)
T(RZ,             inf,             inf,          0x0p+0, 0)
T(RZ,          0x0p+0,            -inf,          0x0p+0, DIVBYZERO)
T(RZ,         -0x0p+0,            -inf,          0x0p+0, DIVBYZERO)
T(RZ,   0x1.fffffap-1, -0x1.800002p-23,   0x1.000012p-3, INEXACT)
T(RZ,   0x1.fffffcp-1,        -0x1p-23,   0x1.000002p-1, INEXACT)
T(RZ,   0x1.fffffep-1,        -0x1p-24,          0x1p-2, INEXACT)
T(RZ,   0x1.000002p+0,  0x1.fffffep-24, -0x1.555554p-24, INEXACT)
T(RZ,   0x1.000004p+0,  0x1.fffffcp-23, -0x1.555552p-22, INEXACT)
T(RZ,   0x1.000008p+0,  0x1.fffff8p-22, -0x1.55554ep-20, INEXACT)
T(RZ,             nan,             nan,          0x0p+0, 0)
T(RZ,             nan,             nan,          0x0p+0, 0)
T(RZ,       -0x1p-149,             nan,          0x0p+0, INVALID)
T(RZ,       -0x1p-148,             nan,          0x0p+0, INVALID)
T(RZ,     -0x1.cp-147,             nan,          0x0p+0, INVALID)
T(RZ,       -0x1p-128,             nan,          0x0p+0, INVALID)
T(RZ,       -0x1p-127,             nan,          0x0p+0, INVALID)
T(RZ,-0x1.fffff8p-127,             nan,          0x0p+0, INVALID)
T(RZ,-0x1.fffffcp-127,             nan,          0x0p+0, INVALID)
T(RZ,       -0x1p-126,             nan,          0x0p+0, INVALID)
T(RZ,-0x1.000002p-126,             nan,          0x0p+0, INVALID)
T(RZ,-0x1.000004p-126,             nan,          0x0p+0, INVALID)
T(RZ,       -0x1p-125,             nan,          0x0p+0, INVALID)
T(RZ,       -0x1p-124,             nan,          0x0p+0, INVALID)
T(RZ,        -0x1p-23,             nan,          0x0p+0, INVALID)
T(RZ,        -0x1p-21,             nan,          0x0p+0, INVALID)
T(RZ,         -0x1p-2,             nan,          0x0p+0, INVALID)
T(RZ,         -0x1p-1,             nan,          0x0p+0, INVALID)
T(RZ,  -0x1.fffff4p-1,             nan,          0x0p+0, INVALID)
T(RZ,  -0x1.fffff8p-1,             nan,          0x0p+0, INVALID)
T(RZ,  -0x1.fffffcp-1,             nan,          0x0p+0, INVALID)
T(RZ,  -0x1.fffffep-1,             nan,          0x0p+0, INVALID)
T(RZ,         -0x1p+0,             nan,          0x0p+0, INVALID)
T(RZ,  -0x1.000002p+0,             nan,          0x0p+0, INVALID)
T(RZ,  -0x1.000004p+0,             nan,          0x0p+0, INVALID)
T(RZ,  -0x1.000008p+0,             nan,          0x0p+0, INVALID)
T(RZ,         -0x1p+1,             nan,          0x0p+0, INVALID)
T(RZ,  -0x1.000004p+1,             nan,          0x0p+0, INVALID)
T(RZ,  -0x1.fffff6p+1,             nan,          0x0p+0, INVALID)
T(RZ,         -0x1p+2,             nan,          0x0p+0, INVALID)
T(RZ,       -0x1p+126,             nan,          0x0p+0, INVALID)
T(RZ,-0x1.000004p+126,             nan,          0x0p+0, INVALID)
T(RZ,-0x1.000008p+126,             nan,          0x0p+0, INVALID)
T(RZ,       -0x1p+127,             nan,          0x0p+0, INVALID)
T(RZ,-0x1.000004p+127,             nan,          0x0p+0, INVALID)
T(RZ,-0x1.fffffcp+127,             nan,          0x0p+0, INVALID)
T(RZ,-0x1.fffffep+127,             nan,          0x0p+0, INVALID)
T(RZ,            -inf,             nan,          0x0p+0, INVALID)
T(RZ,   0x1.ffffeep-1, -0x1.200004p-21,   0x1.10001ep-1, INEXACT)
T(RZ,    0x1.fffffp-1, -0x1.000004p-21,  0x1.55555ep-21, INEXACT)
T(RZ,   0x1.fffff2p-1, -0x1.c00006p-22,   0x1.0000e4p-4, INEXACT)
T(RZ,   0x1.fffff4p-1, -0x1.800004p-22,   0x1.000024p-2, INEXACT)
T(RZ,   0x1.fffff6p-1, -0x1.400002p-22,   0x1.20000ap-1, INEXACT)
T(RZ,   0x1.fffff8p-1, -0x1.000002p-22,  0x1.55555ap-23, INEXACT)
T(RZ,   0x1.000006p+0,  0x1.7ffffap-22,  -0x1.800012p-1, INEXACT)
T(RZ,   0x1.00000ap+0,  0x1.3ffff8p-21,  -0x1.c0002ap-1, INEXACT)
T(RZ,   0x1.00000ep+0,  0x1.bffff2p-21,  -0x1.c00072p-1, INEXACT)
T(RZ,    0x1.00001p+0,   0x1.fffffp-21, -0x1.555546p-18, INEXACT)
T(RZ,   0x1.000012p+0,  0x1.1ffff4p-20,  -0x1.e0007ap-1, INEXACT)