diff options
Diffstat (limited to 'tests/tgeneric.tpl')
-rw-r--r-- | tests/tgeneric.tpl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/tgeneric.tpl b/tests/tgeneric.tpl index 4b897b1..45d984f 100644 --- a/tests/tgeneric.tpl +++ b/tests/tgeneric.tpl @@ -235,8 +235,7 @@ random_params (mpc_fun_param_t *params, int i; int base_index = 0; const int start = params->nbout; - const int end = start + params->nbin - 1; /* the last input parameter is the - rounding mode */ + const int end = start + params->nbin; const unsigned int int_emax = 63; /* maximum binary exponent for random integer */ @@ -311,12 +310,17 @@ random_params (mpc_fun_param_t *params, break; case NATIVE_STRING: - case MPFR_INEX: case MPFR_RND: - case MPC_INEX: case MPC_RND: + case MPFR_INEX: + case MPC_INEX: /* unsupported types */ fprintf (stderr, "random_params: unsupported type.\n"); exit (1); break; + + case MPFR_RND: + case MPC_RND: + /* just skip rounding mode(s) */ + break; } } } |