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 {
29
29
std:: env:: var ( "TARGET" ) . is_ok_and ( |v| v. contains ( "i586" ) )
30
30
}
31
31
32
+ #[ cfg( target_arch = "x86_64" ) ]
32
33
fn f16 ( ) {
33
34
const_assert ! ( ( 1 f16) . to_bits( ) , 0x3c00 ) ;
34
35
const_assert ! ( u16 :: from_be_bytes( 1 f16. to_be_bytes( ) ) , 0x3c00 ) ;
@@ -119,6 +120,7 @@ fn f64() {
119
120
}
120
121
}
121
122
123
+ #[ cfg( target_arch = "x86_64" ) ]
122
124
fn f128 ( ) {
123
125
const_assert ! ( ( 1 f128) . to_bits( ) , 0x3fff0000000000000000000000000000 ) ;
124
126
const_assert ! ( u128 :: from_be_bytes( 1 f128. to_be_bytes( ) ) , 0x3fff0000000000000000000000000000 ) ;
@@ -150,8 +152,11 @@ fn f128() {
150
152
}
151
153
152
154
fn main ( ) {
153
- f16 ( ) ;
155
+ #[ cfg( target_arch = "x86_64" ) ]
156
+ {
157
+ f16 ( ) ;
158
+ f128 ( ) ;
159
+ }
154
160
f32 ( ) ;
155
161
f64 ( ) ;
156
- f128 ( ) ;
157
162
}
You can’t perform that action at this time.
0 commit comments