@@ -1180,15 +1180,12 @@ float_test! {
1180
1180
}
1181
1181
}
1182
1182
1183
- // FIXME(f16_f128,miri): many of these have to be disabled since miri does not yet support
1184
- // the intrinsics.
1185
-
1186
1183
float_test ! {
1187
1184
name: sqrt_domain,
1188
1185
attrs: {
1189
1186
const : #[ cfg( false ) ] ,
1190
- f16: #[ cfg( all ( not ( miri) , target_has_reliable_f16_math) ) ] ,
1191
- f128: #[ cfg( all ( not ( miri) , target_has_reliable_f128_math) ) ] ,
1187
+ f16: #[ cfg( any ( miri, target_has_reliable_f16_math) ) ] ,
1188
+ f128: #[ cfg( any ( miri, target_has_reliable_f128_math) ) ] ,
1192
1189
} ,
1193
1190
test<Float > {
1194
1191
assert!( Float :: NAN . sqrt( ) . is_nan( ) ) ;
@@ -1247,8 +1244,8 @@ float_test! {
1247
1244
name: total_cmp,
1248
1245
attrs: {
1249
1246
const : #[ cfg( false ) ] ,
1250
- f16: #[ cfg( all ( not ( miri) , target_has_reliable_f16_math) ) ] ,
1251
- f128: #[ cfg( all ( not ( miri) , target_has_reliable_f128_math) ) ] ,
1247
+ f16: #[ cfg( any ( miri, target_has_reliable_f16_math) ) ] ,
1248
+ f128: #[ cfg( any ( miri, target_has_reliable_f128_math) ) ] ,
1252
1249
} ,
1253
1250
test<Float > {
1254
1251
use core:: cmp:: Ordering ;
@@ -1356,8 +1353,8 @@ float_test! {
1356
1353
name: total_cmp_s_nan,
1357
1354
attrs: {
1358
1355
const : #[ cfg( false ) ] ,
1359
- f16: #[ cfg( false ) ] ,
1360
- f128: #[ cfg( all ( not ( miri) , target_has_reliable_f128_math) ) ] ,
1356
+ f16: #[ cfg( miri ) ] ,
1357
+ f128: #[ cfg( any ( miri, target_has_reliable_f128_math) ) ] ,
1361
1358
} ,
1362
1359
test<Float > {
1363
1360
use core:: cmp:: Ordering ;
@@ -1433,6 +1430,7 @@ float_test! {
1433
1430
name: powi,
1434
1431
attrs: {
1435
1432
const : #[ cfg( false ) ] ,
1433
+ // FIXME(f16_f128): `powi` does not work in Miri for these types
1436
1434
f16: #[ cfg( all( not( miri) , target_has_reliable_f16_math) ) ] ,
1437
1435
f128: #[ cfg( all( not( miri) , target_has_reliable_f128_math) ) ] ,
1438
1436
} ,
@@ -1453,8 +1451,8 @@ float_test! {
1453
1451
float_test ! {
1454
1452
name: to_degrees,
1455
1453
attrs: {
1456
- f16: #[ cfg( target_has_reliable_f16) ] ,
1457
- f128: #[ cfg( target_has_reliable_f128) ] ,
1454
+ f16: #[ cfg( any ( miri , target_has_reliable_f16) ) ] ,
1455
+ f128: #[ cfg( any ( miri , target_has_reliable_f128) ) ] ,
1458
1456
} ,
1459
1457
test<Float > {
1460
1458
let pi: Float = Float :: PI ;
@@ -1474,8 +1472,8 @@ float_test! {
1474
1472
float_test ! {
1475
1473
name: to_radians,
1476
1474
attrs: {
1477
- f16: #[ cfg( target_has_reliable_f16) ] ,
1478
- f128: #[ cfg( target_has_reliable_f128) ] ,
1475
+ f16: #[ cfg( any ( miri , target_has_reliable_f16) ) ] ,
1476
+ f128: #[ cfg( any ( miri , target_has_reliable_f128) ) ] ,
1479
1477
} ,
1480
1478
test<Float > {
1481
1479
let pi: Float = Float :: PI ;
@@ -1495,8 +1493,8 @@ float_test! {
1495
1493
float_test ! {
1496
1494
name: to_algebraic,
1497
1495
attrs: {
1498
- f16: #[ cfg( target_has_reliable_f16) ] ,
1499
- f128: #[ cfg( target_has_reliable_f128) ] ,
1496
+ f16: #[ cfg( any ( miri , target_has_reliable_f16) ) ] ,
1497
+ f128: #[ cfg( any ( miri , target_has_reliable_f128) ) ] ,
1500
1498
} ,
1501
1499
test<Float > {
1502
1500
let a: Float = 123.0 ;
@@ -1519,8 +1517,8 @@ float_test! {
1519
1517
float_test ! {
1520
1518
name: to_bits_conv,
1521
1519
attrs: {
1522
- f16: #[ cfg( target_has_reliable_f16) ] ,
1523
- f128: #[ cfg( target_has_reliable_f128) ] ,
1520
+ f16: #[ cfg( any ( miri , target_has_reliable_f16) ) ] ,
1521
+ f128: #[ cfg( any ( miri , target_has_reliable_f128) ) ] ,
1524
1522
} ,
1525
1523
test<Float > {
1526
1524
assert_biteq!( flt( 1.0 ) , Float :: RAW_1 ) ;
0 commit comments