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.c34
1 files changed, 32 insertions, 2 deletions
diff --git a/math/test-tgmath.c b/math/test-tgmath.c
index b8d2205..c1cd3fc 100644
--- a/math/test-tgmath.c
+++ b/math/test-tgmath.c
@@ -48,7 +48,7 @@ volatile int count_cdouble;
volatile int count_cfloat;
volatile int count_cldouble;
-#define NCALLS 188
+#define NCALLS 194
#define NCALLS_INT 4
#define NCCALLS 47
@@ -227,7 +227,7 @@ F(compile_test) (void)
int i = 2;
int saved_count;
long int j;
- long long int k;
+ long long int k = 2;
intmax_t m;
uintmax_t um;
@@ -268,6 +268,9 @@ F(compile_test) (void)
a = log10p1 (log10p1 (x));
a = logp1 (logp1 (x));
a = pow (pow (x, a), pow (c, b));
+ b = pown (pown (x, k), k);
+ b = compoundn (compoundn (x, k), k);
+ b = rootn (rootn (x, k), k);
a = powr (powr (x, a), powr (c, b));
b = sqrt (sqrt (a));
a = rsqrt (rsqrt (b));
@@ -395,6 +398,9 @@ F(compile_test) (void)
a = log10p1 (y);
a = logp1 (y);
a = pow (y, y);
+ a = pown (y, 12345);
+ a = compoundn (y, 12345);
+ a = rootn (y, 12345);
a = powr (y, y);
a = sqrt (y);
a = rsqrt (y);
@@ -774,6 +780,14 @@ TYPE
}
TYPE
+(F(pown)) (TYPE x, long long int y)
+{
+ ++count;
+ P ();
+ return x + y;
+}
+
+TYPE
(F(powr)) (TYPE x, TYPE y)
{
++count;
@@ -782,6 +796,22 @@ TYPE
}
TYPE
+(F(compoundn)) (TYPE x, long long int y)
+{
+ ++count;
+ P ();
+ return x + y;
+}
+
+TYPE
+(F(rootn)) (TYPE x, long long int y)
+{
+ ++count;
+ P ();
+ return x + y;
+}
+
+TYPE
(F(sqrt)) (TYPE x)
{
++count;