mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
SRA shift amount must be in i8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25416 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
68e5d084f1
commit
99fa0a102a
@ -1448,7 +1448,7 @@ SDOperand X86TargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
|
||||
SDOperand ShOpHi = Op.getOperand(1);
|
||||
SDOperand ShAmt = Op.getOperand(2);
|
||||
SDOperand Tmp1 = isSRA ? DAG.getNode(ISD::SRA, MVT::i32, ShOpHi,
|
||||
DAG.getConstant(31, MVT::i32))
|
||||
DAG.getConstant(31, MVT::i8))
|
||||
: DAG.getConstant(0, MVT::i32);
|
||||
|
||||
SDOperand Tmp2, Tmp3;
|
||||
|
Loading…
Reference in New Issue
Block a user