diff options
| author | Dale Johannesen <dalej@apple.com> | 2007-10-19 00:59:18 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2007-10-19 00:59:18 +0000 |
| commit | 10432e5a674c35cea7ded261d781bc450c02afa2 (patch) | |
| tree | 505d8830f959fcae48c6f2fb925c44f6e71c3aff /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
| parent | 74a1cfaf218cc248b716cfa1251b7d3e6c1711c1 (diff) | |
| download | bcm5719-llvm-10432e5a674c35cea7ded261d781bc450c02afa2.tar.gz bcm5719-llvm-10432e5a674c35cea7ded261d781bc450c02afa2.zip | |
More ppcf128 issues (maybe the last)?
llvm-svn: 43160
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 166eb9aff50..bf84349653d 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -341,6 +341,13 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM) setTargetDAGCombine(ISD::BR_CC); setTargetDAGCombine(ISD::BSWAP); + // Darwin long double math library functions have $LDBL128 appended. + if (TM.getSubtarget<PPCSubtarget>().isDarwin()) { + setLibcallName(RTLIB::SQRT_PPCF128, "sqrtl$LDBL128"); + setLibcallName(RTLIB::POW_PPCF128, "powl$LDBL128"); + setLibcallName(RTLIB::REM_PPCF128, "fmodl$LDBL128"); + } + computeRegisterProperties(); } |

