2 /* { dg-add-options float128 } */
3 /* { dg-require-effective-target float128 } */
5 extern int link_error (int);
7 #define TEST(FN, VALUE, RESULT) \
8 if (__builtin_##FN##f128 (VALUE) != RESULT) link_error (__LINE__);
13 TEST(roundeven
, (0x1p
64+0.5f128
), (0x1p
64f
128));
14 TEST(roundeven
, (0x1p
63+0.5f128
), (0x1p
63f
128));
15 TEST(roundeven
, (0x1p
63-0.5f128
), (0x1p
63f
128));
16 TEST(roundeven
, (0x1p
64-0.5f128
), (0x1p
64f
128));
17 TEST(roundeven
, (0x1p
64+0.501f128
), (0x1p
64+1.0f128
));
18 TEST(roundeven
, (0x1.C00000000000039A5653p1f128
), (0x1p
2f
128))