mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Enable X86 support for savestack/restorestack
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25278 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cadd7420f9
commit
9edba7605e
@ -39,6 +39,7 @@ X86TargetLowering::X86TargetLowering(TargetMachine &TM)
|
||||
setSetCCResultType(MVT::i8);
|
||||
setSetCCResultContents(ZeroOrOneSetCCResult);
|
||||
setShiftAmountFlavor(Mask); // shl X, 32 == shl X, 0
|
||||
setStackPointerRegisterToSaveRestore(X86::ESP);
|
||||
|
||||
// Set up the register classes.
|
||||
addRegisterClass(MVT::i8, X86::R8RegisterClass);
|
||||
|
@ -1229,7 +1229,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
|
||||
cast<RegisterSDNode>(Node->getOperand(1))->getReg() :
|
||||
cast<RegisterSDNode>(Node)->getReg();
|
||||
// Just use the specified register as our input if we can.
|
||||
if (MRegisterInfo::isVirtualRegister(Reg) || Reg == X86::ESP)
|
||||
if (MRegisterInfo::isVirtualRegister(Reg))
|
||||
return Reg;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user