@@ -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( ) ) ;
@@ -1246,8 +1243,8 @@ float_test! {
1246
1243
float_test ! {
1247
1244
name: total_cmp,
1248
1245
attrs: {
1249
- f16: #[ cfg( all ( not ( miri) , target_has_reliable_f16_math) ) ] ,
1250
- f128: #[ cfg( all ( not ( miri) , target_has_reliable_f128_math) ) ] ,
1246
+ f16: #[ cfg( any ( miri, target_has_reliable_f16_math) ) ] ,
1247
+ f128: #[ cfg( any ( miri, target_has_reliable_f128_math) ) ] ,
1251
1248
} ,
1252
1249
test<Float > {
1253
1250
use core:: cmp:: Ordering ;
@@ -1355,8 +1352,8 @@ float_test! {
1355
1352
name: total_cmp_s_nan,
1356
1353
attrs: {
1357
1354
const : #[ cfg( false ) ] ,
1358
- f16: #[ cfg( false ) ] ,
1359
- f128: #[ cfg( all ( not ( miri) , target_has_reliable_f128_math) ) ] ,
1355
+ f16: #[ cfg( miri ) ] ,
1356
+ f128: #[ cfg( any ( miri, target_has_reliable_f128_math) ) ] ,
1360
1357
} ,
1361
1358
test<Float > {
1362
1359
use core:: cmp:: Ordering ;
@@ -1432,6 +1429,7 @@ float_test! {
1432
1429
name: powi,
1433
1430
attrs: {
1434
1431
const : #[ cfg( false ) ] ,
1432
+ // FIXME(f16_f128): `powi` does not work in Miri for these types
1435
1433
f16: #[ cfg( all( not( miri) , target_has_reliable_f16_math) ) ] ,
1436
1434
f128: #[ cfg( all( not( miri) , target_has_reliable_f128_math) ) ] ,
1437
1435
} ,
@@ -1452,8 +1450,8 @@ float_test! {
1452
1450
float_test ! {
1453
1451
name: to_degrees,
1454
1452
attrs: {
1455
- f16: #[ cfg( target_has_reliable_f16) ] ,
1456
- f128: #[ cfg( target_has_reliable_f128) ] ,
1453
+ f16: #[ cfg( any ( miri , target_has_reliable_f16) ) ] ,
1454
+ f128: #[ cfg( any ( miri , target_has_reliable_f128) ) ] ,
1457
1455
} ,
1458
1456
test<Float > {
1459
1457
let pi: Float = Float :: PI ;
@@ -1473,8 +1471,8 @@ float_test! {
1473
1471
float_test ! {
1474
1472
name: to_radians,
1475
1473
attrs: {
1476
- f16: #[ cfg( target_has_reliable_f16) ] ,
1477
- f128: #[ cfg( target_has_reliable_f128) ] ,
1474
+ f16: #[ cfg( any ( miri , target_has_reliable_f16) ) ] ,
1475
+ f128: #[ cfg( any ( miri , target_has_reliable_f128) ) ] ,
1478
1476
} ,
1479
1477
test<Float > {
1480
1478
let pi: Float = Float :: PI ;
@@ -1494,8 +1492,8 @@ float_test! {
1494
1492
float_test ! {
1495
1493
name: to_algebraic,
1496
1494
attrs: {
1497
- f16: #[ cfg( target_has_reliable_f16) ] ,
1498
- f128: #[ cfg( target_has_reliable_f128) ] ,
1495
+ f16: #[ cfg( any ( miri , target_has_reliable_f16) ) ] ,
1496
+ f128: #[ cfg( any ( miri , target_has_reliable_f128) ) ] ,
1499
1497
} ,
1500
1498
test<Float > {
1501
1499
let a: Float = 123.0 ;
@@ -1518,8 +1516,8 @@ float_test! {
1518
1516
float_test ! {
1519
1517
name: to_bits_conv,
1520
1518
attrs: {
1521
- f16: #[ cfg( target_has_reliable_f16) ] ,
1522
- f128: #[ cfg( target_has_reliable_f128) ] ,
1519
+ f16: #[ cfg( any ( miri , target_has_reliable_f16) ) ] ,
1520
+ f128: #[ cfg( any ( miri , target_has_reliable_f128) ) ] ,
1523
1521
} ,
1524
1522
test<Float > {
1525
1523
assert_biteq!( flt( 1.0 ) , Float :: RAW_1 ) ;
0 commit comments