aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-14.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-14.c')
-rw-r--r--gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-14.c43
1 files changed, 6 insertions, 37 deletions
diff --git a/gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-14.c b/gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-14.c
index 5bd67b2f795..90dd64637c9 100644
--- a/gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-14.c
+++ b/gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-14.c
@@ -27,44 +27,13 @@ test_nan (__ieee128 *p)
int
main ()
{
- /* A normalized number has a biased exponent value:
- * (my extrapolations for ieee128)
- * 1 to 254 in single format
- * 1 to 2046 in double format
- * 1 to 32766 in ieee128 format
- * Note that unbiased exponent value is:
- * biased_value - 127: single format (range: -126 to 127)
- * biased_value - 1023: double format (range: -1022 to 1023)
- * biased_value - 16,383: ieee128 format (range: -16382 to 16,383)
- *
- * For normalized numbers, the implied unit bit is 1. Normalized
- * numbers are interpreted as follows:
- * normalized_number = (-1)^S * s^E * (1.<fraction>)
- * (note that the significand is 1 plus the <fraction>)
- *
- * A Zero value has a biased exponent value of zero and a zero
- * fraction value. The sign may be either positive or negative.
- *
- * A Denormal number has a biased exponent value of zero and a
- * non-zero fraction value
- *
- * Infinity is represented by a biased exponent value of:
- * 255 in single format
- * 2047 in double format
- * 32767 in ieee128 format
- * and a zero fraction value. The document doesn't say so, but
- * the difference between +infinity and -infinity is the value of
- * the sign bit.
- *
- * NaNs are represented with
- * the maximum biased exponent value and a non-zero fraction value.
- * The sign bit ignored.
- * If the high-order bit of the fraction field is 0, then the Nan
- * is a Signaling NaN. Otherwise, it is a Quiet NaN.
- */
+ /* NaN is represented with the maximum biased exponent value and a
+ * non-zero fraction value. The sign bit ignored. If the
+ * high-order bit of the fraction field is 0, then the NaN is a
+ * Signaling NaN. Otherwise, it is a Quiet NaN. */
__int128 signal_significand = (__int128) 0xffffffff;
- __int128 quiet_significand = (((__int128) 0x1) << 111) | 0xffffffff;
- __int128 a_number_significand = (((__int128) 0x1) << 111);
+ __int128 quiet_significand = (((__int128) 0x1) << 112) | 0xffffffff;
+ __int128 a_number_significand = (((__int128) 0x1) << 112);
unsigned long long int nan_exponent = 0x7fff;
unsigned long long int a_number_exponent = 16383;