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.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/math/test-tgmath.c b/math/test-tgmath.c
index b8d2205..5dbf654 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 190
#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,7 @@ 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);
a = powr (powr (x, a), powr (c, b));
b = sqrt (sqrt (a));
a = rsqrt (rsqrt (b));
@@ -395,6 +396,7 @@ F(compile_test) (void)
a = log10p1 (y);
a = logp1 (y);
a = pow (y, y);
+ a = pown (y, 12345);
a = powr (y, y);
a = sqrt (y);
a = rsqrt (y);
@@ -774,6 +776,14 @@ TYPE
}
TYPE
+(F(pown)) (TYPE x, long long int y)
+{
+ ++count;
+ P ();
+ return x + y;
+}
+
+TYPE
(F(powr)) (TYPE x, TYPE y)
{
++count;