mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Fix NotTest - round up extraStack to the nearest doubleword, if it is
not zero. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17728 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -780,6 +780,8 @@ void V8ISel::visitCallInst(CallInst &I) {
|
||||
default: extraStack += 4; break;
|
||||
}
|
||||
}
|
||||
// Round up extra stack size to the nearest doubleword.
|
||||
if (extraStack) { extraStack = (extraStack + 7) & ~7; }
|
||||
|
||||
// Deal with args
|
||||
static const unsigned OutgoingArgRegs[] = { V8::O0, V8::O1, V8::O2, V8::O3,
|
||||
|
Reference in New Issue
Block a user