@@ -55,34 +55,6 @@ fn test_num_f128() {
55
55
// FIXME(f16_f128,miri): many of these have to be disabled since miri does not yet support
56
56
// the intrinsics.
57
57
58
- #[ test]
59
- #[ cfg( any( miri, target_has_reliable_f128_math) ) ]
60
- fn test_min_nan ( ) {
61
- assert_biteq ! ( f128:: NAN . min( 2.0 ) , 2.0 ) ;
62
- assert_biteq ! ( 2.0f128 . min( f128:: NAN ) , 2.0 ) ;
63
- }
64
-
65
- #[ test]
66
- #[ cfg( any( miri, target_has_reliable_f128_math) ) ]
67
- fn test_max_nan ( ) {
68
- assert_biteq ! ( f128:: NAN . max( 2.0 ) , 2.0 ) ;
69
- assert_biteq ! ( 2.0f128 . max( f128:: NAN ) , 2.0 ) ;
70
- }
71
-
72
- #[ test]
73
- #[ cfg( any( miri, target_has_reliable_f128_math) ) ]
74
- fn test_minimum ( ) {
75
- assert ! ( f128:: NAN . minimum( 2.0 ) . is_nan( ) ) ;
76
- assert ! ( 2.0f128 . minimum( f128:: NAN ) . is_nan( ) ) ;
77
- }
78
-
79
- #[ test]
80
- #[ cfg( any( miri, target_has_reliable_f128_math) ) ]
81
- fn test_maximum ( ) {
82
- assert ! ( f128:: NAN . maximum( 2.0 ) . is_nan( ) ) ;
83
- assert ! ( 2.0f128 . maximum( f128:: NAN ) . is_nan( ) ) ;
84
- }
85
-
86
58
#[ test]
87
59
fn test_nan ( ) {
88
60
let nan: f128 = f128:: NAN ;
@@ -234,98 +206,6 @@ fn test_classify() {
234
206
assert_eq ! ( 1e-4932f128 . classify( ) , Fp :: Subnormal ) ;
235
207
}
236
208
237
- #[ test]
238
- #[ cfg( target_has_reliable_f128_math) ]
239
- fn test_floor ( ) {
240
- assert_biteq ! ( 1.0f128 . floor( ) , 1.0f128 ) ;
241
- assert_biteq ! ( 1.3f128 . floor( ) , 1.0f128 ) ;
242
- assert_biteq ! ( 1.5f128 . floor( ) , 1.0f128 ) ;
243
- assert_biteq ! ( 1.7f128 . floor( ) , 1.0f128 ) ;
244
- assert_biteq ! ( 0.0f128 . floor( ) , 0.0f128 ) ;
245
- assert_biteq ! ( ( -0.0f128 ) . floor( ) , -0.0f128 ) ;
246
- assert_biteq ! ( ( -1.0f128 ) . floor( ) , -1.0f128 ) ;
247
- assert_biteq ! ( ( -1.3f128 ) . floor( ) , -2.0f128 ) ;
248
- assert_biteq ! ( ( -1.5f128 ) . floor( ) , -2.0f128 ) ;
249
- assert_biteq ! ( ( -1.7f128 ) . floor( ) , -2.0f128 ) ;
250
- }
251
-
252
- #[ test]
253
- #[ cfg( any( miri, target_has_reliable_f128_math) ) ]
254
- fn test_ceil ( ) {
255
- assert_biteq ! ( 1.0f128 . ceil( ) , 1.0f128 ) ;
256
- assert_biteq ! ( 1.3f128 . ceil( ) , 2.0f128 ) ;
257
- assert_biteq ! ( 1.5f128 . ceil( ) , 2.0f128 ) ;
258
- assert_biteq ! ( 1.7f128 . ceil( ) , 2.0f128 ) ;
259
- assert_biteq ! ( 0.0f128 . ceil( ) , 0.0f128 ) ;
260
- assert_biteq ! ( ( -0.0f128 ) . ceil( ) , -0.0f128 ) ;
261
- assert_biteq ! ( ( -1.0f128 ) . ceil( ) , -1.0f128 ) ;
262
- assert_biteq ! ( ( -1.3f128 ) . ceil( ) , -1.0f128 ) ;
263
- assert_biteq ! ( ( -1.5f128 ) . ceil( ) , -1.0f128 ) ;
264
- assert_biteq ! ( ( -1.7f128 ) . ceil( ) , -1.0f128 ) ;
265
- }
266
-
267
- #[ test]
268
- #[ cfg( any( miri, target_has_reliable_f128_math) ) ]
269
- fn test_round ( ) {
270
- assert_biteq ! ( 2.5f128 . round( ) , 3.0f128 ) ;
271
- assert_biteq ! ( 1.0f128 . round( ) , 1.0f128 ) ;
272
- assert_biteq ! ( 1.3f128 . round( ) , 1.0f128 ) ;
273
- assert_biteq ! ( 1.5f128 . round( ) , 2.0f128 ) ;
274
- assert_biteq ! ( 1.7f128 . round( ) , 2.0f128 ) ;
275
- assert_biteq ! ( 0.0f128 . round( ) , 0.0f128 ) ;
276
- assert_biteq ! ( ( -0.0f128 ) . round( ) , -0.0f128 ) ;
277
- assert_biteq ! ( ( -1.0f128 ) . round( ) , -1.0f128 ) ;
278
- assert_biteq ! ( ( -1.3f128 ) . round( ) , -1.0f128 ) ;
279
- assert_biteq ! ( ( -1.5f128 ) . round( ) , -2.0f128 ) ;
280
- assert_biteq ! ( ( -1.7f128 ) . round( ) , -2.0f128 ) ;
281
- }
282
-
283
- #[ test]
284
- #[ cfg( any( miri, target_has_reliable_f128_math) ) ]
285
- fn test_round_ties_even ( ) {
286
- assert_biteq ! ( 2.5f128 . round_ties_even( ) , 2.0f128 ) ;
287
- assert_biteq ! ( 1.0f128 . round_ties_even( ) , 1.0f128 ) ;
288
- assert_biteq ! ( 1.3f128 . round_ties_even( ) , 1.0f128 ) ;
289
- assert_biteq ! ( 1.5f128 . round_ties_even( ) , 2.0f128 ) ;
290
- assert_biteq ! ( 1.7f128 . round_ties_even( ) , 2.0f128 ) ;
291
- assert_biteq ! ( 0.0f128 . round_ties_even( ) , 0.0f128 ) ;
292
- assert_biteq ! ( ( -0.0f128 ) . round_ties_even( ) , -0.0f128 ) ;
293
- assert_biteq ! ( ( -1.0f128 ) . round_ties_even( ) , -1.0f128 ) ;
294
- assert_biteq ! ( ( -1.3f128 ) . round_ties_even( ) , -1.0f128 ) ;
295
- assert_biteq ! ( ( -1.5f128 ) . round_ties_even( ) , -2.0f128 ) ;
296
- assert_biteq ! ( ( -1.7f128 ) . round_ties_even( ) , -2.0f128 ) ;
297
- }
298
-
299
- #[ test]
300
- #[ cfg( any( miri, target_has_reliable_f128_math) ) ]
301
- fn test_trunc ( ) {
302
- assert_biteq ! ( 1.0f128 . trunc( ) , 1.0f128 ) ;
303
- assert_biteq ! ( 1.3f128 . trunc( ) , 1.0f128 ) ;
304
- assert_biteq ! ( 1.5f128 . trunc( ) , 1.0f128 ) ;
305
- assert_biteq ! ( 1.7f128 . trunc( ) , 1.0f128 ) ;
306
- assert_biteq ! ( 0.0f128 . trunc( ) , 0.0f128 ) ;
307
- assert_biteq ! ( ( -0.0f128 ) . trunc( ) , -0.0f128 ) ;
308
- assert_biteq ! ( ( -1.0f128 ) . trunc( ) , -1.0f128 ) ;
309
- assert_biteq ! ( ( -1.3f128 ) . trunc( ) , -1.0f128 ) ;
310
- assert_biteq ! ( ( -1.5f128 ) . trunc( ) , -1.0f128 ) ;
311
- assert_biteq ! ( ( -1.7f128 ) . trunc( ) , -1.0f128 ) ;
312
- }
313
-
314
- #[ test]
315
- #[ cfg( any( miri, target_has_reliable_f128_math) ) ]
316
- fn test_fract ( ) {
317
- assert_biteq ! ( 1.0f128 . fract( ) , 0.0f128 ) ;
318
- assert_biteq ! ( 1.3f128 . fract( ) , 0.300000000000000000000000000000000039f128 ) ;
319
- assert_biteq ! ( 1.5f128 . fract( ) , 0.5f128 ) ;
320
- assert_biteq ! ( 1.7f128 . fract( ) , 0.7f128 ) ;
321
- assert_biteq ! ( 0.0f128 . fract( ) , 0.0f128 ) ;
322
- assert_biteq ! ( ( -0.0f128 ) . fract( ) , 0.0f128 ) ;
323
- assert_biteq ! ( ( -1.0f128 ) . fract( ) , 0.0f128 ) ;
324
- assert_biteq ! ( ( -1.3f128 ) . fract( ) , -0.300000000000000000000000000000000039f128 ) ;
325
- assert_biteq ! ( ( -1.5f128 ) . fract( ) , -0.5f128 ) ;
326
- assert_biteq ! ( ( -1.7f128 ) . fract( ) , -0.699999999999999999999999999999999961f128 ) ;
327
- }
328
-
329
209
#[ test]
330
210
#[ cfg( any( miri, target_has_reliable_f128_math) ) ]
331
211
fn test_abs ( ) {
0 commit comments