diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-05 05:09:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-05 05:09:38 +0000 |
commit | 5c1ba2ac081d58aae6a9450fdc3b159d4c086b49 (patch) | |
tree | 5e21ac0f90f69e1959729537c2260e1eab04a858 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 9c7f50376a83b8cdb7fc2dccf6cebd122850feeb (diff) | |
download | bcm5719-llvm-5c1ba2ac081d58aae6a9450fdc3b159d4c086b49.tar.gz bcm5719-llvm-5c1ba2ac081d58aae6a9450fdc3b159d4c086b49.zip |
Codegen copysign[f] into a FCOPYSIGN node
llvm-svn: 26542
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 7312d66dd6b..534015ccf93 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1152,7 +1152,12 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, assert(N1.getValueType() == N2.getValueType() && N1.getValueType() == VT && "Binary operator types must match!"); break; - + case ISD::FCOPYSIGN: // N1 and result must match. N1/N2 need not match. + assert(N1.getValueType() == VT && + MVT::isFloatingPoint(N1.getValueType()) && + MVT::isFloatingPoint(N2.getValueType()) && + "Invalid FCOPYSIGN!"); + break; case ISD::SHL: case ISD::SRA: case ISD::SRL: @@ -2635,6 +2640,7 @@ const char *SDNode::getOperationName(const SelectionDAG *G) const { case ISD::FMUL: return "fmul"; case ISD::FDIV: return "fdiv"; case ISD::FREM: return "frem"; + case ISD::FCOPYSIGN: return "fcopysign"; case ISD::VADD: return "vadd"; case ISD::VSUB: return "vsub"; case ISD::VMUL: return "vmul"; |