@@ -1180,15 +1180,12 @@ float_test! {
11801180 }
11811181}
11821182
1183- // FIXME(f16_f128,miri): many of these have to be disabled since miri does not yet support
1184- // the intrinsics.
1185-
11861183float_test ! {
11871184 name: sqrt_domain,
11881185 attrs: {
11891186 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 ) ) ] ,
1188+ f128: #[ cfg( any ( miri, target_has_reliable_f128 ) ) ] ,
11921189 } ,
11931190 test<Float > {
11941191 assert!( Float :: NAN . sqrt( ) . is_nan( ) ) ;
@@ -1247,8 +1244,8 @@ float_test! {
12471244 name: total_cmp,
12481245 attrs: {
12491246 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) ) ] ,
12521249 } ,
12531250 test<Float > {
12541251 use core:: cmp:: Ordering ;
@@ -1356,8 +1353,8 @@ float_test! {
13561353 name: total_cmp_s_nan,
13571354 attrs: {
13581355 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) ) ] ,
13611358 } ,
13621359 test<Float > {
13631360 use core:: cmp:: Ordering ;
@@ -1433,6 +1430,7 @@ float_test! {
14331430 name: powi,
14341431 attrs: {
14351432 const : #[ cfg( false ) ] ,
1433+ // FIXME(f16_f128): `powi` does not work in Miri for these types
14361434 f16: #[ cfg( all( not( miri) , target_has_reliable_f16_math) ) ] ,
14371435 f128: #[ cfg( all( not( miri) , target_has_reliable_f128_math) ) ] ,
14381436 } ,
@@ -1453,8 +1451,8 @@ float_test! {
14531451float_test ! {
14541452 name: to_degrees,
14551453 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) ) ] ,
14581456 } ,
14591457 test<Float > {
14601458 let pi: Float = Float :: PI ;
@@ -1474,8 +1472,8 @@ float_test! {
14741472float_test ! {
14751473 name: to_radians,
14761474 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) ) ] ,
14791477 } ,
14801478 test<Float > {
14811479 let pi: Float = Float :: PI ;
@@ -1495,8 +1493,8 @@ float_test! {
14951493float_test ! {
14961494 name: to_algebraic,
14971495 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) ) ] ,
15001498 } ,
15011499 test<Float > {
15021500 let a: Float = 123.0 ;
@@ -1519,8 +1517,8 @@ float_test! {
15191517float_test ! {
15201518 name: to_bits_conv,
15211519 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) ) ] ,
15241522 } ,
15251523 test<Float > {
15261524 assert_biteq!( flt( 1.0 ) , Float :: RAW_1 ) ;
0 commit comments