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