Skip to content

Commit 66845d3

Browse files
committed
fixup! Add support for f128 integer exponentiation
1 parent 0299ca8 commit 66845d3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

testcrate/tests/float_pow.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,11 @@ pow! {
6868
pow! {
6969
f128, 1e-36, __powikf2, not(feature = "no-sys-f128");
7070
}
71+
72+
// FIXME(f16_f128): MSVC is unable to link the mul and div symbols required for this test.
73+
74+
#[no_mangle]
75+
#[cfg(target_env = "msvc")]
76+
pub extern "C" fn __divtf3(a: f128, b: f128) -> f128 {
77+
compiler_builtins::float::div::__divtf3(a, b)
78+
}

0 commit comments

Comments
 (0)