File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -415,12 +415,19 @@ mod bootstrap {
415
415
compiler_builtins:: float:: extend:: __extendhfsf2 ( a)
416
416
}
417
417
418
- #[ cfg( f16_enabled) ]
419
418
#[ cfg( f128_enabled) ]
420
419
#[ cfg( target_arch = "x86" ) ]
421
420
#[ linkage = "weak" ]
422
421
#[ unsafe( no_mangle) ]
423
422
pub extern "C" fn __extenddftf2 ( a : f64 ) -> f128 {
424
423
compiler_builtins:: float:: extend:: __extenddftf2 ( a)
425
424
}
425
+
426
+ #[ cfg( f128_enabled) ]
427
+ #[ cfg( target_arch = "x86" ) ]
428
+ #[ linkage = "weak" ]
429
+ #[ unsafe( no_mangle) ]
430
+ pub extern "C" fn __floattitf ( i : i128 ) -> f128 {
431
+ compiler_builtins:: float:: conv:: __floattitf ( a)
432
+ }
426
433
}
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ impl Config {
34
34
. collect ( ) ;
35
35
36
36
let target_arch = env:: var ( "CARGO_CFG_TARGET_ARCH" ) . unwrap ( ) ;
37
+ // Symbols are missing so we can't test until they get to nightly
37
38
let bootstrapping_f128 = target_arch == "x86" ;
38
39
39
40
Self {
@@ -51,10 +52,10 @@ impl Config {
51
52
target_features,
52
53
// Note that these are unstable options, so only show up with the nightly compiler or
53
54
// with `RUSTC_BOOTSTRAP=1` (which is required to use the types anyway).
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
56
reliable_f16 : true ,
57
- reliable_f128 : bootstrapping_f128,
57
+ reliable_f128 : env:: var_os ( "CARGO_CFG_TARGET_HAS_RELIABLE_F128" ) . is_some ( )
58
+ && !bootstrapping_f128,
58
59
}
59
60
}
60
61
}
You can’t perform that action at this time.
0 commit comments