diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-01-22 00:33:03 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-01-22 00:33:03 +0000 |
| commit | 3bc78b2e0bc874955bd18ae5aba1200a1f2abc5a (patch) | |
| tree | b0774a9b4cdba6a00a27418b55d87f939ba84316 /llvm/lib/CodeGen | |
| parent | ec2183713cbe6cdf9a2d77f01d77f647804916fb (diff) | |
| download | bcm5719-llvm-3bc78b2e0bc874955bd18ae5aba1200a1f2abc5a.tar.gz bcm5719-llvm-3bc78b2e0bc874955bd18ae5aba1200a1f2abc5a.zip | |
More bugfixes for IA64 shifts.
llvm-svn: 19739
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 1ed3dc17fda..f18d06707a5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -655,7 +655,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, // FIXME: This should only be done if the target supports shift // operations. if ((C2 & C2-1) == 0) { - if (N2.getValueType() != MVT::i64) { // FIXME: HACK HACK HACK! + if (N1.getValueType() != MVT::i64) { // FIXME: HACK HACK HACK! SDOperand ShAmt = getConstant(ExactLog2(C2), MVT::i8); return getNode(ISD::SHL, VT, N1, ShAmt); } @@ -666,7 +666,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, // FIXME: This should only be done if the target supports shift // operations. if ((C2 & C2-1) == 0 && C2) { - if (N2.getValueType() != MVT::i64) { // FIXME: HACK HACK HACK! + if (N1.getValueType() != MVT::i64) { // FIXME: HACK HACK HACK! SDOperand ShAmt = getConstant(ExactLog2(C2), MVT::i8); return getNode(ISD::SRL, VT, N1, ShAmt); } |

