We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0437efb commit 77d042fCopy full SHA for 77d042f
builtins-test/src/lib.rs
@@ -15,6 +15,7 @@
15
#![no_std]
16
#![cfg_attr(f128_enabled, feature(f128))]
17
#![cfg_attr(f16_enabled, feature(f16))]
18
+#![feature(linkage)]
19
20
pub mod bench;
21
extern crate alloc;
@@ -403,3 +404,13 @@ macro_rules! apfloat_fallback {
403
404
$apfloat_op($($arg),+)
405
}};
406
}
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