1 /* Test that rounding double to __fp16 happens directly, using an example
2 of a number that would round differently if it went from double to
6 /* { dg-options "-mfp16-format=ieee" } */
10 /* The original double value. */
11 #define ORIG 0x1.0020008p0
13 /* The expected (double)((__fp16)ORIG) value. */
14 #define ROUNDED 0x1.0040000p0
31 /* Test that the rounding is correct for static initializers. */
35 /* Test that the rounding is correct for a casted constant expression
36 not in a static initializer. */
41 /* Test that the rounding is correct for a runtime conversion. */