diff options
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/IntrinsicLowering.cpp | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp index 88d21af0541..488185d9bb6 100644 --- a/llvm/lib/CodeGen/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter.cpp @@ -1271,6 +1271,7 @@ void AsmPrinter::printDataDirective(const Type *type) { } break; case Type::FloatTyID: case Type::DoubleTyID: + case Type::X86_FP80TyID: case Type::FP128TyID: case Type::PPC_FP128TyID: assert (0 && "Should have already output floating point constant."); default: assert (0 && "Can't handle printing this type of thing"); diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp index 42b09c2d3ae..0a2f0d6a517 100644 --- a/llvm/lib/CodeGen/IntrinsicLowering.cpp +++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp @@ -794,6 +794,24 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) { Type::DoubleTy, sqrtFCache); break; } + case Intrinsic::sqrt_f80: { + static Constant *sqrtF80Cache = 0; + ReplaceCallWith("sqrtl", CI, CI->op_begin()+1, CI->op_end(), + Type::X86_FP80Ty, sqrtF80Cache); + break; + } + case Intrinsic::sqrt_f128: { + static Constant *sqrtF128Cache = 0; + ReplaceCallWith("sqrtl", CI, CI->op_begin()+1, CI->op_end(), + Type::FP128Ty, sqrtF128Cache); + break; + } + case Intrinsic::sqrt_ppcf128: { + static Constant *sqrtppcF128Cache = 0; + ReplaceCallWith("sqrtl", CI, CI->op_begin()+1, CI->op_end(), + Type::PPC_FP128Ty, sqrtppcF128Cache); + break; + } } assert(CI->use_empty() && |

