1 /* Test intermediate rounding of double to float and then to __fp16, using
2 an example of a number that would round differently if it went directly
3 from double to __fp16. */
6 /* { dg-options "-mfp16-format=ieee" } */
10 /* The original double value. */
11 #define ORIG 0x1.0020008p0
13 /* The expected (double)((__fp16)((float)ORIG)) value. */
14 #define ROUNDED 0x1.0000000p0
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. */