Skip to content

Commit 5915e12

Browse files
committed
Fix new frexpf128 ldexpf128 test
1 parent c75e47a commit 5915e12

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/include/llvm/IR/RuntimeLibcalls.td

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,6 +2067,10 @@ def isX86 : RuntimeLibcallPredicate<"TT.isX86()">;
20672067
// Some darwins have an optimized __bzero/bzero function.
20682068
def darwinHas__bzero : RuntimeLibcallPredicate<"TT.isMacOSX() && !TT.isMacOSXVersionLT(10, 6)">;
20692069

2070+
// FIXME: This is has ldexpl/frexpl plus use f128 for long double.
2071+
def hasFrexplLdexplF128
2072+
: RuntimeLibcallPredicate<[{(!TT.isOSWindows() || TT.isOSCygMing()) && !TT.isGNUEnvironment()}]>;
2073+
20702074
// Use the f128 variants of math functions on x86
20712075
defvar X86_F128_Libcalls = LibcallImpls<(add LibmF128Libcalls, LibmF128FiniteLibcalls), isGNUEnvironment>;
20722076

@@ -2080,6 +2084,7 @@ defvar X86CommonLibcalls =
20802084
LibcallImpls<(add __bzero), darwinHas__bzero>,
20812085
LibmHasFrexpF32, LibmHasLdexpF32,
20822086
LibmHasFrexpF80, LibmHasLdexpF80,
2087+
LibcallImpls<(add frexp_f128, ldexp_f128), hasFrexplLdexplF128>,
20832088
DefaultRuntimeLibcallImpls_f80,
20842089
// FIXME: MSVCRT doesn't have powi. The f128 case is added as a
20852090
// hack for one test relying on it.

0 commit comments

Comments
 (0)