@@ -111,25 +111,25 @@ impl MaybeOverride<(f32,)> for SpecialCase {
111
111
ctx : & CheckCtx ,
112
112
) -> Option < TestResult > {
113
113
if ctx. basis == CheckBasis :: Musl {
114
- if ctx. fname == "expm1f" && input. 0 > 80.0 && actual. is_infinite ( ) {
114
+ if ctx. fn_name == "expm1f" && input. 0 > 80.0 && actual. is_infinite ( ) {
115
115
// we return infinity but the number is representable
116
116
return XFAIL ;
117
117
}
118
118
119
- if ctx. fname == "sinhf" && input. 0 . abs ( ) > 80.0 && actual. is_nan ( ) {
119
+ if ctx. fn_name == "sinhf" && input. 0 . abs ( ) > 80.0 && actual. is_nan ( ) {
120
120
// we return some NaN that should be real values or infinite
121
121
// doesn't seem to happen on x86
122
122
return XFAIL ;
123
123
}
124
124
}
125
125
126
- if ctx. fname == "acoshf" && input. 0 < -1.0 {
126
+ if ctx. fn_name == "acoshf" && input. 0 < -1.0 {
127
127
// acoshf is undefined for x <= 1.0, but we return a random result at lower
128
128
// values.
129
129
return XFAIL ;
130
130
}
131
131
132
- if ctx. fname == "lgammaf" || ctx. fname == "lgammaf_r" && input. 0 < 0.0 {
132
+ if ctx. fn_name == "lgammaf" || ctx. fn_name == "lgammaf_r" && input. 0 < 0.0 {
133
133
// loggamma should not be defined for x < 0, yet we both return results
134
134
return XFAIL ;
135
135
}
@@ -146,7 +146,7 @@ impl MaybeOverride<(f32,)> for SpecialCase {
146
146
// On MPFR for lgammaf_r, we set -1 as the integer result for negative infinity but MPFR
147
147
// sets +1
148
148
if ctx. basis == CheckBasis :: Mpfr
149
- && ctx. fname == "lgammaf_r"
149
+ && ctx. fn_name == "lgammaf_r"
150
150
&& input. 0 == f32:: NEG_INFINITY
151
151
&& actual. abs ( ) == expected. abs ( )
152
152
{
@@ -166,13 +166,13 @@ impl MaybeOverride<(f64,)> for SpecialCase {
166
166
ctx : & CheckCtx ,
167
167
) -> Option < TestResult > {
168
168
if ctx. basis == CheckBasis :: Musl {
169
- if cfg ! ( target_arch = "x86" ) && ctx. fname == "acosh" && input. 0 < 1.0 {
169
+ if cfg ! ( target_arch = "x86" ) && ctx. fn_name == "acosh" && input. 0 < 1.0 {
170
170
// The function is undefined, both implementations return random results
171
171
return SKIP ;
172
172
}
173
173
174
174
if cfg ! ( x86_no_sse)
175
- && ctx. fname == "ceil"
175
+ && ctx. fn_name == "ceil"
176
176
&& input. 0 < 0.0
177
177
&& input. 0 > -1.0
178
178
&& expected == F :: ZERO
@@ -183,13 +183,13 @@ impl MaybeOverride<(f64,)> for SpecialCase {
183
183
}
184
184
}
185
185
186
- if ctx. fname == "acosh" && input. 0 < 1.0 {
186
+ if ctx. fn_name == "acosh" && input. 0 < 1.0 {
187
187
// The function is undefined for the inputs, musl and our libm both return
188
188
// random results.
189
189
return XFAIL ;
190
190
}
191
191
192
- if ctx. fname == "lgamma" || ctx. fname == "lgamma_r" && input. 0 < 0.0 {
192
+ if ctx. fn_name == "lgamma" || ctx. fn_name == "lgamma_r" && input. 0 < 0.0 {
193
193
// loggamma should not be defined for x < 0, yet we both return results
194
194
return XFAIL ;
195
195
}
@@ -206,7 +206,7 @@ impl MaybeOverride<(f64,)> for SpecialCase {
206
206
// On MPFR for lgamma_r, we set -1 as the integer result for negative infinity but MPFR
207
207
// sets +1
208
208
if ctx. basis == CheckBasis :: Mpfr
209
- && ctx. fname == "lgamma_r"
209
+ && ctx. fn_name == "lgamma_r"
210
210
&& input. 0 == f64:: NEG_INFINITY
211
211
&& actual. abs ( ) == expected. abs ( )
212
212
{
@@ -219,7 +219,7 @@ impl MaybeOverride<(f64,)> for SpecialCase {
219
219
220
220
/// Check NaN bits if the function requires it
221
221
fn maybe_check_nan_bits < F : Float > ( actual : F , expected : F , ctx : & CheckCtx ) -> Option < TestResult > {
222
- if !( ctx. canonical_name == "fabs" || ctx. canonical_name == "copysign" ) {
222
+ if !( ctx. base_name == "fabs" || ctx. base_name == "copysign" ) {
223
223
return None ;
224
224
}
225
225
@@ -277,7 +277,7 @@ fn maybe_skip_binop_nan<F1: Float, F2: Float>(
277
277
) -> Option < TestResult > {
278
278
match ctx. basis {
279
279
CheckBasis :: Musl => {
280
- if ( ctx. canonical_name == "fmax" || ctx. canonical_name == "fmin" )
280
+ if ( ctx. base_name == "fmax" || ctx. base_name == "fmin" )
281
281
&& ( input. 0 . is_nan ( ) || input. 1 . is_nan ( ) )
282
282
&& expected. is_nan ( )
283
283
{
@@ -287,7 +287,7 @@ fn maybe_skip_binop_nan<F1: Float, F2: Float>(
287
287
}
288
288
}
289
289
CheckBasis :: Mpfr => {
290
- if ctx. canonical_name == "copysign" && input. 1 . is_nan ( ) {
290
+ if ctx. base_name == "copysign" && input. 1 . is_nan ( ) {
291
291
SKIP
292
292
} else {
293
293
None
@@ -308,7 +308,7 @@ impl MaybeOverride<(i32, f32)> for SpecialCase {
308
308
CheckBasis :: Musl => bessel_prec_dropoff ( input, ulp, ctx) ,
309
309
CheckBasis :: Mpfr => {
310
310
// We return +0.0, MPFR returns -0.0
311
- if ctx. fname == "jnf"
311
+ if ctx. fn_name == "jnf"
312
312
&& input. 1 == f32:: NEG_INFINITY
313
313
&& actual == F :: ZERO
314
314
&& expected == F :: ZERO
@@ -333,7 +333,7 @@ impl MaybeOverride<(i32, f64)> for SpecialCase {
333
333
CheckBasis :: Musl => bessel_prec_dropoff ( input, ulp, ctx) ,
334
334
CheckBasis :: Mpfr => {
335
335
// We return +0.0, MPFR returns -0.0
336
- if ctx. fname == "jn"
336
+ if ctx. fn_name == "jn"
337
337
&& input. 1 == f64:: NEG_INFINITY
338
338
&& actual == F :: ZERO
339
339
&& expected == F :: ZERO
@@ -353,7 +353,7 @@ fn bessel_prec_dropoff<F: Float>(
353
353
ulp : & mut u32 ,
354
354
ctx : & CheckCtx ,
355
355
) -> Option < TestResult > {
356
- if ctx. canonical_name == "jn" {
356
+ if ctx. base_name == "jn" {
357
357
if input. 0 > 4000 {
358
358
return XFAIL ;
359
359
} else if input. 0 > 2000 {
0 commit comments