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 | a09f848c11c9db3c2614e0275a3256310ac26653 (patch) | |
tree | 54b741a56e3e87f0d8b25195be496504c5e57e46 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 9601a86a644fa036168ff173d3539550b2e9206e (diff) |
Codegen copysign[f] into a FCOPYSIGN node
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 7312d66dd6..534015ccf9 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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"; |