f16 FREM can now be legalized by promoting to f32

llvm-svn: 154039
This commit is contained in:
Pete Cooper 2012-04-04 19:36:31 +00:00
parent 9705c865d9
commit 8a3dc0ed8c
1 changed files with 1 additions and 0 deletions

View File

@ -3633,6 +3633,7 @@ void SelectionDAGLegalize::PromoteNode(SDNode *Node) {
break;
}
case ISD::FDIV:
case ISD::FREM:
case ISD::FPOW: {
Tmp1 = DAG.getNode(ISD::FP_EXTEND, dl, NVT, Node->getOperand(0));
Tmp2 = DAG.getNode(ISD::FP_EXTEND, dl, NVT, Node->getOperand(1));