Add cbe support for powi

llvm-svn: 30226
This commit is contained in:
Chris Lattner 2006-09-09 06:17:12 +00:00
parent f0359b343a
commit fdb3a75942
1 changed files with 10 additions and 0 deletions

View File

@ -1693,6 +1693,8 @@ void CWriter::lowerIntrinsics(Function &F) {
case Intrinsic::longjmp:
case Intrinsic::prefetch:
case Intrinsic::dbg_stoppoint:
case Intrinsic::powi_f32:
case Intrinsic::powi_f64:
// We directly implement these intrinsics
break;
default:
@ -1785,6 +1787,14 @@ void CWriter::visitCallInst(CallInst &I) {
writeOperand(I.getOperand(1));
Out << ')';
return;
case Intrinsic::powi_f32:
case Intrinsic::powi_f64:
Out << "__builtin_powi(";
writeOperand(I.getOperand(1));
Out << ", ";
writeOperand(I.getOperand(2));
Out << ')';
return;
case Intrinsic::setjmp:
#if defined(HAVE__SETJMP) && defined(HAVE__LONGJMP)
Out << "_"; // Use _setjmp on systems that support it!