SRA shift amount must be in i8

llvm-svn: 25416
This commit is contained in:
Evan Cheng 2006-01-18 09:26:46 +00:00
parent 4b3774e0a2
commit 621674a19d
1 changed files with 1 additions and 1 deletions

View File

@ -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;