@@ -35,7 +35,23 @@ pub unsafe fn test_popcountl_7() {
3535 assert ! ( ( ( ( ( 0_u64 . count_ones( ) as i32 ) == ( 0 ) ) as i32 ) != 0 ) ) ;
3636 assert ! ( ( ( ( ( 255_u64 . count_ones( ) as i32 ) == ( 8 ) ) as i32 ) != 0 ) ) ;
3737}
38- pub unsafe fn test_mul_overflow_long_8 ( ) {
38+ pub unsafe fn test_clzl_8 ( ) {
39+ assert ! ( ( ( ( ( 1_u64 . leading_zeros( ) as i32 ) == ( 63 ) ) as i32 ) != 0 ) ) ;
40+ assert ! ( ( ( ( ( 9223372036854775808_u64 . leading_zeros( ) as i32 ) == ( 0 ) ) as i32 ) != 0 ) ) ;
41+ }
42+ pub unsafe fn test_inff_9 ( ) {
43+ let mut inf: f32 = f32:: INFINITY ;
44+ assert ! ( ( ( ( ( inf) > ( 0.0E+0 ) ) as i32 ) != 0 ) ) ;
45+ assert ! ( ( ( ( ( inf) == ( ( inf) * ( 2.0E+0 ) ) ) as i32 ) != 0 ) ) ;
46+ assert ! ( ( ( ( ( ( 1.0E+0 ) / ( inf) ) == ( 0.0E+0 ) ) as i32 ) != 0 ) ) ;
47+ }
48+ pub unsafe fn test_nanf_10 ( ) {
49+ let mut nan: f32 = f32:: NAN ;
50+ assert ! ( ( ( ( ( nan) != ( nan) ) as i32 ) != 0 ) ) ;
51+ assert ! ( ( ( !( ( ( ( nan) < ( 0.0E+0 ) ) as i32 ) != 0 ) as i32 ) != 0 ) ) ;
52+ assert ! ( ( ( !( ( ( ( nan) > ( 0.0E+0 ) ) as i32 ) != 0 ) as i32 ) != 0 ) ) ;
53+ }
54+ pub unsafe fn test_mul_overflow_long_11 ( ) {
3955 let mut r: i64 = 0_i64 ;
4056 assert ! (
4157 ( ( !( {
@@ -52,7 +68,7 @@ pub unsafe fn test_mul_overflow_long_8() {
5268 ovf
5369 } ) ;
5470}
55- pub unsafe fn test_mul_overflow_long_long_9 ( ) {
71+ pub unsafe fn test_mul_overflow_long_long_12 ( ) {
5672 let mut r: i64 = 0_i64 ;
5773 assert ! (
5874 ( ( !( {
@@ -84,8 +100,11 @@ unsafe fn main_0() -> i32 {
84100 ( unsafe { test_bswap64_5 ( ) } ) ;
85101 ( unsafe { test_ctzl_6 ( ) } ) ;
86102 ( unsafe { test_popcountl_7 ( ) } ) ;
87- ( unsafe { test_mul_overflow_long_8 ( ) } ) ;
88- ( unsafe { test_mul_overflow_long_long_9 ( ) } ) ;
103+ ( unsafe { test_clzl_8 ( ) } ) ;
104+ ( unsafe { test_inff_9 ( ) } ) ;
105+ ( unsafe { test_nanf_10 ( ) } ) ;
106+ ( unsafe { test_mul_overflow_long_11 ( ) } ) ;
107+ ( unsafe { test_mul_overflow_long_long_12 ( ) } ) ;
89108 return 0 ;
90109}
91110pub unsafe fn __cpp2rust_init_globals ( ) { }
0 commit comments