mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
X86 shifts mask the amount.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19678 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d6e496732b
commit
009b55b6f6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user