mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
PPC QPX requires a 32-byte aligned stack
On systems which support the QPX vector instructions, the stack must be 32-byte aligned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173993 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -83,6 +83,12 @@ PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &CPU,
|
||||
// Set up darwin-specific properties.
|
||||
if (isDarwin())
|
||||
HasLazyResolverStubs = true;
|
||||
|
||||
// QPX requires a 32-byte aligned stack. Note that we need to do this if
|
||||
// we're compiling for a BG/Q system regardless of whether or not QPX
|
||||
// is enabled because external functions will assume this alignment.
|
||||
if (hasQPX() || isBGQ())
|
||||
StackAlignment = 32;
|
||||
}
|
||||
|
||||
/// SetJITMode - This is called to inform the subtarget info that we are
|
||||
|
Reference in New Issue
Block a user