[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jan 18 19:36:42 PST 2005
Changes in directory llvm/lib/Target/X86:
X86ISelPattern.cpp updated: 1.76 -> 1.77
---
Log message:
X86 shifts mask the amount.
---
Diffs of the changes: (+1 -0)
Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.76 llvm/lib/Target/X86/X86ISelPattern.cpp:1.77
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.76 Tue Jan 18 14:05:56 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp Tue Jan 18 21:36:30 2005
@@ -43,6 +43,7 @@
// X86 is wierd, it always uses i8 for shift amounts and setcc results.
setShiftAmountType(MVT::i8);
setSetCCResultType(MVT::i8);
+ setShiftAmountFlavor(Mask); // shl X, 32 == shl X, 0
// Set up the register classes.
addRegisterClass(MVT::i8, X86::R8RegisterClass);
More information about the llvm-commits
mailing list