diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-04-08 22:22:57 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-04-08 22:22:57 +0000 |
| commit | 02274a5265ca6cc63c35a2bff88b1b9d139ca4c9 (patch) | |
| tree | 939192bb2dd00df9034ed66a042d5eaa39d5b713 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
| parent | 141afce6affa669d9307b2fc91697434825ebfd8 (diff) | |
| download | bcm5719-llvm-02274a5265ca6cc63c35a2bff88b1b9d139ca4c9.tar.gz bcm5719-llvm-02274a5265ca6cc63c35a2bff88b1b9d139ca4c9.zip | |
Add code generator support for VSELECT
llvm-svn: 27542
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 225d2b39dfa..9cdbb910303 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -4773,6 +4773,11 @@ SDOperand SelectionDAGLegalize::PackVectorOp(SDOperand Op, assert(0 && "Cast from unsupported vector type not implemented yet!"); } } + case ISD::VSELECT: + Result = DAG.getNode(ISD::SELECT, NewVT, Op.getOperand(0), + PackVectorOp(Op.getOperand(1), NewVT), + PackVectorOp(Op.getOperand(2), NewVT)); + break; } if (TLI.isTypeLegal(NewVT)) |

