[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp

Evan Cheng evan.cheng at apple.com
Wed Jan 18 01:26:58 PST 2006



Changes in directory llvm/lib/Target/X86:

X86ISelLowering.cpp updated: 1.48 -> 1.49
---
Log message:

SRA shift amount must be in i8


---
Diffs of the changes:  (+1 -1)

 X86ISelLowering.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.48 llvm/lib/Target/X86/X86ISelLowering.cpp:1.49
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.48	Wed Jan 18 02:08:38 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp	Wed Jan 18 03:26:46 2006
@@ -1448,7 +1448,7 @@
     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;






More information about the llvm-commits mailing list