Skip to content

Commit 77d042f

Browse files
committed
provide extend for bootstrapping
1 parent 0437efb commit 77d042f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

builtins-test/src/lib.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#![no_std]
1616
#![cfg_attr(f128_enabled, feature(f128))]
1717
#![cfg_attr(f16_enabled, feature(f16))]
18+
#![feature(linkage)]
1819

1920
pub mod bench;
2021
extern crate alloc;
@@ -403,3 +404,13 @@ macro_rules! apfloat_fallback {
403404
$apfloat_op($($arg),+)
404405
}};
405406
}
407+
408+
#[cfg(target_arch = "s390x")]
409+
mod bootstrap {
410+
// Needed for testing other symbols,
411+
#[linkage = "weak"]
412+
#[unsafe(no_mangle)]
413+
pub extern "C" fn __extendhfsf2(a: f16) -> f32 {
414+
compiler_builtins::float::extend::__extendhfsf2(a)
415+
}
416+
}

0 commit comments

Comments
 (0)