| # Basic OfScientific Float/Float32 vectors, in the parse-number-fxx-test-data format: | |
| # <binary16-hex> <binary32-hex> <binary64-hex> <decimal-string> | |
| # The binary16 field is present for format compatibility but is ignored by the harness. | |
| # Comment lines (starting with '#') and blank lines are skipped. | |
| # Small integers and simple fractions. | |
| 3C00 3F800000 3FF0000000000000 1 | |
| BC00 BF800000 BFF0000000000000 -1 | |
| 3D00 3FA00000 3FF4000000000000 1.25 | |
| 3800 3F000000 3FE0000000000000 0.5 | |
| C100 C0200000 C004000000000000 -2.5 | |
| 57B7 42F6E979 405EDD2F1A9FBE77 123.456 | |
| # Zero and negative zero. | |
| 0000 00000000 0000000000000000 0 | |
| 8000 80000000 8000000000000000 -0 | |
| # Forms of the decimal point and exponent the parser must accept. | |
| 3800 3F000000 3FE0000000000000 .5 | |
| 4500 40A00000 4014000000000000 5. | |
| 3400 3E800000 3FD0000000000000 2.5e-1 | |
| 7C00 501502F9 4202A05F20000000 1e10 | |
| 0000 2EDBE6FF 3DDB7CDFD9D7BDBB 1e-10 | |
| 3E00 3FC00000 3FF8000000000000 +1.5 | |
| 63D0 447A0000 408F400000000000 1E3 | |
| # Values that require correct round-to-nearest-even. | |
| 2E66 3DCCCCCD 3FB999999999999A 0.1 | |
| 3C66 3F8CCCCD 3FF199999999999A 1.1 | |
| 4248 40490FDB 400921FB54442D18 3.141592653589793 | |
| 7C00 66FF0C2E 44DFE185CA57C517 6.02214076e23 | |
| 7C00 5D891088 43B12210F47DE981 1234567890123456789 | |
| 7C00 5A000000 4340000000000000 9007199254740993 | |
| # Overflow to infinity (binary32 overflows at 1e39, both at 1e400) ... | |
| 7C00 7F800000 48078287F49C4A1D 1e39 | |
| 7C00 7F800000 7FF0000000000000 1e400 | |
| # ... and underflow to zero (binary32 underflows well before binary64). | |
| 0000 00000000 358DEE7A4AD4B81F 1e-50 | |
| 0000 00000000 0000000000000000 1e-400 | |
| # binary64 boundary values: smallest normal, smallest subnormal, largest finite. | |
| 0000 00000000 0010000000000000 2.2250738585072014e-308 | |
| 0000 00000000 0000000000000001 5e-324 | |
| 7C00 7F800000 7FEFFFFFFFFFFFFF 1.7976931348623157e308 |