Skip to content

Commit 6226f31

Browse files
lei137copybara-github
authored andcommitted
[PowerPC] Emit libcall to frexpl for calls to frexp(ppcDoublDouble) (#75226)
On Linux PPC call lib func ``frexpl`` for calls to ``frexp()`` for input of type PPCDoubleDouble. Fixes bug: llvm/llvm-project#64426 NOKEYCHECK=True GitOrigin-RevId: aaa3f72c1ce6e1757df79c0d02e0675201ee07a3
1 parent 0d01d53 commit 6226f31

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

test/libcxx/numerics/c.math/constexpr-cxx23-clang.pass.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,9 @@ int main(int, char**) {
5858

5959
ASSERT_NOT_CONSTEXPR_CXX23(std::frexp(0.0f, &DummyInt) == 0.0f);
6060
ASSERT_NOT_CONSTEXPR_CXX23(std::frexp(0.0, &DummyInt) == 0.0);
61-
//FIXME: currently linux powerpc does not support this expansion
62-
// since 0.0L lowers to ppcf128 and special handling is required.
63-
#if !defined(__LONG_DOUBLE_IBM128__)
6461
ASSERT_NOT_CONSTEXPR_CXX23(std::frexp(0.0L, &DummyInt) == 0.0L);
65-
#endif
6662
ASSERT_NOT_CONSTEXPR_CXX23(std::frexpf(0.0f, &DummyInt) == 0.0f);
67-
#if !defined(__LONG_DOUBLE_IBM128__)
6863
ASSERT_NOT_CONSTEXPR_CXX23(std::frexpl(0.0L, &DummyInt) == 0.0L);
69-
#endif
7064

7165
ASSERT_NOT_CONSTEXPR_CXX23(std::ilogb(1.0f) == 0);
7266
ASSERT_NOT_CONSTEXPR_CXX23(std::ilogb(1.0) == 0);

0 commit comments

Comments
 (0)