File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -407,11 +407,20 @@ macro_rules! apfloat_fallback {
407
407
408
408
mod bootstrap {
409
409
// Needed for testing other symbols,
410
- #[ linkage = "weak" ]
411
- #[ unsafe( no_mangle) ]
412
410
#[ cfg( f16_enabled) ]
413
411
#[ cfg( target_arch = "s390x" ) ]
412
+ #[ linkage = "weak" ]
413
+ #[ unsafe( no_mangle) ]
414
414
pub extern "C" fn __extendhfsf2 ( a : f16 ) -> f32 {
415
415
compiler_builtins:: float:: extend:: __extendhfsf2 ( a)
416
416
}
417
+
418
+ #[ cfg( f16_enabled) ]
419
+ #[ cfg( f128_enabled) ]
420
+ #[ cfg( target_arch = "x86" ) ]
421
+ #[ linkage = "weak" ]
422
+ #[ unsafe( no_mangle) ]
423
+ pub extern "C" fn __extenddftf2 ( a : f64 ) -> f128 {
424
+ compiler_builtins:: float:: extend:: __extenddftf2 ( a)
425
+ }
417
426
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ impl Config {
34
34
. collect ( ) ;
35
35
36
36
let target_arch = env:: var ( "CARGO_CFG_TARGET_ARCH" ) . unwrap ( ) ;
37
- let bootstrapping_f16 = target_arch == "x86" ;
37
+ let bootstrapping_f128 = target_arch == "x86" ;
38
38
39
39
Self {
40
40
target_triple,
@@ -53,8 +53,8 @@ impl Config {
53
53
// with `RUSTC_BOOTSTRAP=1` (which is required to use the types anyway).
54
54
// reliable_f128: env::var_os("CARGO_CFG_TARGET_HAS_RELIABLE_F128").is_some(),
55
55
// reliable_f16: env::var_os("CARGO_CFG_TARGET_HAS_RELIABLE_F16").is_some(),
56
- reliable_f16 : !bootstrapping_f16 ,
57
- reliable_f128 : true ,
56
+ reliable_f16 : true ,
57
+ reliable_f128 : bootstrapping_f128 ,
58
58
}
59
59
}
60
60
}
You can’t perform that action at this time.
0 commit comments