@@ -45,9 +45,8 @@ fn range_to_inclusive() {
4545    // FIXME(f16_f128): remove gate when ABI issues are resolved 
4646    #[ cfg( all( target_arch = "aarch64" ,  target_os = "linux" ) ) ]  
4747    { 
48-         // FIXME(f16_f128): enable infinity tests when constants are available 
49-         // assert!(yes!(f16::NEG_INFINITY, ..=f16::NEG_INFINITY)); 
50-         // assert!(yes!(f16::NEG_INFINITY, ..=1.0f16)); 
48+         assert ! ( yes!( f16:: NEG_INFINITY ,  ..=f16:: NEG_INFINITY ) ) ; 
49+         assert ! ( yes!( f16:: NEG_INFINITY ,  ..=1.0f16 ) ) ; 
5150        assert ! ( yes!( 1.5f16 ,  ..=1.5f16 ) ) ; 
5251        assert ! ( !yes!( 1.6f16 ,  ..=-1.5f16 ) ) ; 
5352    } 
@@ -68,9 +67,8 @@ fn range_to_inclusive() {
6867    // FIXME(f16_f128): remove gate when ABI issues are resolved 
6968    #[ cfg( all( target_arch = "aarch64" ,  target_os = "linux" ) ) ]  
7069    { 
71-         // FIXME(f16_f128): enable infinity tests when constants are available 
72-         // assert!(yes!(f128::NEG_INFINITY, ..=f128::NEG_INFINITY)); 
73-         // assert!(yes!(f128::NEG_INFINITY, ..=1.0f128)); 
70+         assert ! ( yes!( f128:: NEG_INFINITY ,  ..=f128:: NEG_INFINITY ) ) ; 
71+         assert ! ( yes!( f128:: NEG_INFINITY ,  ..=1.0f128 ) ) ; 
7472        assert ! ( yes!( 1.5f128 ,  ..=1.5f128 ) ) ; 
7573        assert ! ( !yes!( 1.6f128 ,  ..=-1.5f128 ) ) ; 
7674    } 
@@ -111,8 +109,7 @@ fn range_to() {
111109    // FIXME(f16_f128): remove gate when ABI issues are resolved 
112110    #[ cfg( all( target_arch = "aarch64" ,  target_os = "linux" ) ) ]  
113111    { 
114-         // FIXME(f16_f128): enable infinity tests when constants are available 
115-         // assert!(yes!(f16::NEG_INFINITY, ..1.0f16)); 
112+         assert ! ( yes!( f16:: NEG_INFINITY ,  ..1.0f16 ) ) ; 
116113        assert ! ( !yes!( 1.5f16 ,  ..1.5f16 ) ) ; 
117114        const  E16 :  f16  = 1.5f16  + f16:: EPSILON ; 
118115        assert ! ( yes!( 1.5f16 ,  ..E16 ) ) ; 
@@ -137,8 +134,7 @@ fn range_to() {
137134    // FIXME(f16_f128): remove gate when ABI issues are resolved 
138135    #[ cfg( all( target_arch = "aarch64" ,  target_os = "linux" ) ) ]  
139136    { 
140-         // FIXME(f16_f128): enable infinity tests when constants are available 
141-         // assert!(yes!(f128::NEG_INFINITY, ..1.0f128)); 
137+         assert ! ( yes!( f128:: NEG_INFINITY ,  ..1.0f128 ) ) ; 
142138        assert ! ( !yes!( 1.5f128 ,  ..1.5f128 ) ) ; 
143139        const  E128 :  f128  = 1.5f128  + f128:: EPSILON ; 
144140        assert ! ( yes!( 1.5f128 ,  ..E128 ) ) ; 
@@ -181,15 +177,14 @@ fn range_from() {
181177    // FIXME(f16_f128): remove gate when ABI issues are resolved 
182178    #[ cfg( all( target_arch = "aarch64" ,  target_os = "linux" ) ) ]  
183179    { 
184-         // FIXME(f16_f128): enable infinity tests when constants are available 
185-         // assert!(yes!(f16::NEG_INFINITY, f16::NEG_INFINITY..)); 
186-         // assert!(yes!(f16::INFINITY, f16::NEG_INFINITY..)); 
187-         // assert!(!yes!(f16::NEG_INFINITY, 1.0f16..)); 
188-         // assert!(yes!(f16::INFINITY, 1.0f16..)); 
180+         assert ! ( yes!( f16:: NEG_INFINITY ,  f16:: NEG_INFINITY ..) ) ; 
181+         assert ! ( yes!( f16:: INFINITY ,  f16:: NEG_INFINITY ..) ) ; 
182+         assert ! ( !yes!( f16:: NEG_INFINITY ,  1.0f16 ..) ) ; 
183+         assert ! ( yes!( f16:: INFINITY ,  1.0f16 ..) ) ; 
189184        assert ! ( !yes!( 1.0f16  - f16:: EPSILON ,  1.0f16 ..) ) ; 
190185        assert ! ( yes!( 1.0f16 ,  1.0f16 ..) ) ; 
191-         //  assert!(yes!(f16::INFINITY, 1.0f16..));
192-         //  assert!(yes!(f16::INFINITY, f16::INFINITY..));
186+         assert ! ( yes!( f16:: INFINITY ,  1.0f16 ..) ) ; 
187+         assert ! ( yes!( f16:: INFINITY ,  f16:: INFINITY ..) ) ; 
193188    } 
194189
195190    // f32; `X..` 
@@ -216,15 +211,14 @@ fn range_from() {
216211    // FIXME(f16_f128): remove gate when ABI issues are resolved 
217212    #[ cfg( all( target_arch = "aarch64" ,  target_os = "linux" ) ) ]  
218213    { 
219-         // FIXME(f16_f128): enable infinity tests when constants are available 
220-         // assert!(yes!(f128::NEG_INFINITY, f128::NEG_INFINITY..)); 
221-         // assert!(yes!(f128::INFINITY, f128::NEG_INFINITY..)); 
222-         // assert!(!yes!(f128::NEG_INFINITY, 1.0f128..)); 
223-         // assert!(yes!(f128::INFINITY, 1.0f128..)); 
214+         assert ! ( yes!( f128:: NEG_INFINITY ,  f128:: NEG_INFINITY ..) ) ; 
215+         assert ! ( yes!( f128:: INFINITY ,  f128:: NEG_INFINITY ..) ) ; 
216+         assert ! ( !yes!( f128:: NEG_INFINITY ,  1.0f128 ..) ) ; 
217+         assert ! ( yes!( f128:: INFINITY ,  1.0f128 ..) ) ; 
224218        assert ! ( !yes!( 1.0f128  - f128:: EPSILON ,  1.0f128 ..) ) ; 
225219        assert ! ( yes!( 1.0f128 ,  1.0f128 ..) ) ; 
226-         //  assert!(yes!(f128::INFINITY, 1.0f128..));
227-         //  assert!(yes!(f128::INFINITY, f128::INFINITY..));
220+         assert ! ( yes!( f128:: INFINITY ,  1.0f128 ..) ) ; 
221+         assert ! ( yes!( f128:: INFINITY ,  f128:: INFINITY ..) ) ; 
228222    } 
229223} 
230224
0 commit comments