mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
More bugfixes for IA64 shifts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19739 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -655,7 +655,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
|
|||||||
// FIXME: This should only be done if the target supports shift
|
// FIXME: This should only be done if the target supports shift
|
||||||
// operations.
|
// operations.
|
||||||
if ((C2 & C2-1) == 0) {
|
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);
|
SDOperand ShAmt = getConstant(ExactLog2(C2), MVT::i8);
|
||||||
return getNode(ISD::SHL, VT, N1, ShAmt);
|
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
|
// FIXME: This should only be done if the target supports shift
|
||||||
// operations.
|
// operations.
|
||||||
if ((C2 & C2-1) == 0 && C2) {
|
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);
|
SDOperand ShAmt = getConstant(ExactLog2(C2), MVT::i8);
|
||||||
return getNode(ISD::SRL, VT, N1, ShAmt);
|
return getNode(ISD::SRL, VT, N1, ShAmt);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user