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 | 7cd50cf286c5f16ca633080b3d78ee4dd2094a9f (patch) | |
tree | 59165fb7c1ea0ead30034fbac4968bf773e2f3d8 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 27ff112948d059524e5f4ebe249a1da0b7c710e8 (diff) |
More bugfixes for IA64 shifts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 1ed3dc17fd..f18d06707a 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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); } |