From 419a5d213be639c77bf7fbda7a8ab7c8d122e14a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 19 Jan 2005 03:36:30 +0000 Subject: [PATCH] X86 shifts mask the amount. llvm-svn: 19678 --- lib/Target/X86/X86ISelPattern.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/X86/X86ISelPattern.cpp b/lib/Target/X86/X86ISelPattern.cpp index f6065b13374..1228d70bc04 100644 --- a/lib/Target/X86/X86ISelPattern.cpp +++ b/lib/Target/X86/X86ISelPattern.cpp @@ -43,6 +43,7 @@ namespace { // 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);