File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ fn has_broken_floats() -> bool {
2929 std:: env:: var ( "TARGET" ) . is_ok_and ( |v| v. contains ( "i586" ) )
3030}
3131
32+ #[ cfg( target_arch = "x86_64" ) ]
3233fn f16 ( ) {
3334 const_assert ! ( ( 1 f16) . to_bits( ) , 0x3c00 ) ;
3435 const_assert ! ( u16 :: from_be_bytes( 1 f16. to_be_bytes( ) ) , 0x3c00 ) ;
@@ -119,6 +120,7 @@ fn f64() {
119120 }
120121}
121122
123+ #[ cfg( target_arch = "x86_64" ) ]
122124fn f128 ( ) {
123125 const_assert ! ( ( 1 f128) . to_bits( ) , 0x3fff0000000000000000000000000000 ) ;
124126 const_assert ! ( u128 :: from_be_bytes( 1 f128. to_be_bytes( ) ) , 0x3fff0000000000000000000000000000 ) ;
@@ -150,8 +152,11 @@ fn f128() {
150152}
151153
152154fn main ( ) {
153- f16 ( ) ;
155+ #[ cfg( target_arch = "x86_64" ) ]
156+ {
157+ f16 ( ) ;
158+ f128 ( ) ;
159+ }
154160 f32 ( ) ;
155161 f64 ( ) ;
156- f128 ( ) ;
157162}
You can’t perform that action at this time.
0 commit comments