@@ -1190,15 +1190,12 @@ float_test! {
1190
1190
}
1191
1191
}
1192
1192
1193
- // FIXME(f16_f128,miri): many of these have to be disabled since miri does not yet support
1194
- // the intrinsics.
1195
-
1196
1193
float_test ! {
1197
1194
name: sqrt_domain,
1198
1195
attrs: {
1199
1196
const : #[ cfg( false ) ] ,
1200
- f16: #[ cfg( all ( not ( miri) , target_has_reliable_f16_math) ) ] ,
1201
- f128: #[ cfg( all ( not ( miri) , target_has_reliable_f128_math) ) ] ,
1197
+ f16: #[ cfg( any ( miri, target_has_reliable_f16_math) ) ] ,
1198
+ f128: #[ cfg( any ( miri, target_has_reliable_f128_math) ) ] ,
1202
1199
} ,
1203
1200
test<Float > {
1204
1201
assert!( Float :: NAN . sqrt( ) . is_nan( ) ) ;
@@ -1256,8 +1253,8 @@ float_test! {
1256
1253
float_test ! {
1257
1254
name: total_cmp,
1258
1255
attrs: {
1259
- f16: #[ cfg( all ( not ( miri) , target_has_reliable_f16_math) ) ] ,
1260
- f128: #[ cfg( all ( not ( miri) , target_has_reliable_f128_math) ) ] ,
1256
+ f16: #[ cfg( any ( miri, target_has_reliable_f16_math) ) ] ,
1257
+ f128: #[ cfg( any ( miri, target_has_reliable_f128_math) ) ] ,
1261
1258
} ,
1262
1259
test<Float > {
1263
1260
use core:: cmp:: Ordering ;
@@ -1365,8 +1362,8 @@ float_test! {
1365
1362
name: total_cmp_s_nan,
1366
1363
attrs: {
1367
1364
const : #[ cfg( false ) ] ,
1368
- f16: #[ cfg( false ) ] ,
1369
- f128: #[ cfg( all ( not ( miri) , target_has_reliable_f128_math) ) ] ,
1365
+ f16: #[ cfg( miri ) ] ,
1366
+ f128: #[ cfg( any ( miri, target_has_reliable_f128_math) ) ] ,
1370
1367
} ,
1371
1368
test<Float > {
1372
1369
use core:: cmp:: Ordering ;
@@ -1442,6 +1439,7 @@ float_test! {
1442
1439
name: powi,
1443
1440
attrs: {
1444
1441
const : #[ cfg( false ) ] ,
1442
+ // FIXME(f16_f128): `powi` does not work in Miri for these types
1445
1443
f16: #[ cfg( all( not( miri) , target_has_reliable_f16_math) ) ] ,
1446
1444
f128: #[ cfg( all( not( miri) , target_has_reliable_f128_math) ) ] ,
1447
1445
} ,
@@ -1462,8 +1460,8 @@ float_test! {
1462
1460
float_test ! {
1463
1461
name: to_degrees,
1464
1462
attrs: {
1465
- f16: #[ cfg( target_has_reliable_f16) ] ,
1466
- f128: #[ cfg( target_has_reliable_f128) ] ,
1463
+ f16: #[ cfg( any ( miri , target_has_reliable_f16) ) ] ,
1464
+ f128: #[ cfg( any ( miri , target_has_reliable_f128) ) ] ,
1467
1465
} ,
1468
1466
test<Float > {
1469
1467
let pi: Float = Float :: PI ;
@@ -1483,8 +1481,8 @@ float_test! {
1483
1481
float_test ! {
1484
1482
name: to_radians,
1485
1483
attrs: {
1486
- f16: #[ cfg( target_has_reliable_f16) ] ,
1487
- f128: #[ cfg( target_has_reliable_f128) ] ,
1484
+ f16: #[ cfg( any ( miri , target_has_reliable_f16) ) ] ,
1485
+ f128: #[ cfg( any ( miri , target_has_reliable_f128) ) ] ,
1488
1486
} ,
1489
1487
test<Float > {
1490
1488
let pi: Float = Float :: PI ;
@@ -1504,8 +1502,8 @@ float_test! {
1504
1502
float_test ! {
1505
1503
name: to_algebraic,
1506
1504
attrs: {
1507
- f16: #[ cfg( target_has_reliable_f16) ] ,
1508
- f128: #[ cfg( target_has_reliable_f128) ] ,
1505
+ f16: #[ cfg( any ( miri , target_has_reliable_f16) ) ] ,
1506
+ f128: #[ cfg( any ( miri , target_has_reliable_f128) ) ] ,
1509
1507
} ,
1510
1508
test<Float > {
1511
1509
let a: Float = 123.0 ;
@@ -1528,8 +1526,8 @@ float_test! {
1528
1526
float_test ! {
1529
1527
name: to_bits_conv,
1530
1528
attrs: {
1531
- f16: #[ cfg( target_has_reliable_f16) ] ,
1532
- f128: #[ cfg( target_has_reliable_f128) ] ,
1529
+ f16: #[ cfg( any ( miri , target_has_reliable_f16) ) ] ,
1530
+ f128: #[ cfg( any ( miri , target_has_reliable_f128) ) ] ,
1533
1531
} ,
1534
1532
test<Float > {
1535
1533
assert_biteq!( flt( 1.0 ) , Float :: RAW_1 ) ;
0 commit comments