aboutsummaryrefslogtreecommitdiff
path: root/math/test-tgmath.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/test-tgmath.c')
-rw-r--r--math/test-tgmath.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/math/test-tgmath.c b/math/test-tgmath.c
index b9095271ea..7a58d99985 100644
--- a/math/test-tgmath.c
+++ b/math/test-tgmath.c
@@ -50,7 +50,7 @@ int count_cdouble;
int count_cfloat;
int count_cldouble;
-#define NCALLS 132
+#define NCALLS 134
#define NCALLS_INT 4
#define NCCALLS 47
@@ -264,6 +264,7 @@ F(compile_test) (void)
b = fmod (fmod (a, b), fmod (c, x));
a = nearbyint (nearbyint (x));
b = round (round (a));
+ c = roundeven (roundeven (a));
a = trunc (trunc (x));
b = remquo (remquo (a, b, &i), remquo (c, x, &i), &i);
j = lrint (x) + lround (a);
@@ -367,6 +368,7 @@ F(compile_test) (void)
a = fmod (y, y);
a = nearbyint (y);
a = round (y);
+ a = roundeven (y);
a = trunc (y);
a = remquo (y, y, &i);
j = lrint (y) + lround (y);
@@ -693,6 +695,14 @@ TYPE
}
TYPE
+(F(roundeven)) (TYPE x)
+{
+ ++count;
+ P ();
+ return x;
+}
+
+TYPE
(F(trunc)) (TYPE x)
{
++count;