blob: 7ac7b76785c30a83735a31e7dc3948ab135ae011 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001//===-- X86Subtarget.cpp - X86 Subtarget Information ------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner081ce942007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007//
8//===----------------------------------------------------------------------===//
9//
10// This file implements the X86 specific subclass of TargetSubtarget.
11//
12//===----------------------------------------------------------------------===//
13
Evan Cheng5211b422009-01-03 04:04:46 +000014#define DEBUG_TYPE "subtarget"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015#include "X86Subtarget.h"
Chris Lattner505aa6c2009-07-10 07:20:05 +000016#include "X86InstrInfo.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017#include "X86GenSubtarget.inc"
Daniel Dunbarb711cf02009-08-02 22:11:08 +000018#include "llvm/GlobalValue.h"
Evan Cheng1870cf52010-04-21 01:47:12 +000019#include "llvm/Support/CommandLine.h"
Evan Cheng5211b422009-01-03 04:04:46 +000020#include "llvm/Support/Debug.h"
Bill Wendlingbdfa3be2009-08-03 00:11:34 +000021#include "llvm/Support/raw_ostream.h"
Daniel Dunbar91c44412009-11-14 10:09:12 +000022#include "llvm/System/Host.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023#include "llvm/Target/TargetMachine.h"
Anton Korobeynikovb214a522008-04-23 18:18:10 +000024#include "llvm/Target/TargetOptions.h"
David Goodwin2a0ca3b2009-11-10 00:48:55 +000025#include "llvm/ADT/SmallVector.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026using namespace llvm;
27
Evan Cheng1870cf52010-04-21 01:47:12 +000028static cl::opt<bool>
29DoPromote16Bit("promote-16bit", cl::Hidden,
30 cl::desc("Promote 16-bit instructions"));
31
Chris Lattner1d8091f2009-04-25 18:27:23 +000032#if defined(_MSC_VER)
Bill Wendlingbdfa3be2009-08-03 00:11:34 +000033#include <intrin.h>
Chris Lattner1d8091f2009-04-25 18:27:23 +000034#endif
35
Dan Gohman885793b2009-11-20 23:18:13 +000036/// ClassifyBlockAddressReference - Classify a blockaddress reference for the
37/// current subtarget according to how we should reference it in a non-pcrel
38/// context.
39unsigned char X86Subtarget::
40ClassifyBlockAddressReference() const {
41 if (isPICStyleGOT()) // 32-bit ELF targets.
42 return X86II::MO_GOTOFF;
43
44 if (isPICStyleStubPIC()) // Darwin/32 in PIC mode.
45 return X86II::MO_PIC_BASE_OFFSET;
46
47 // Direct static reference to label.
48 return X86II::MO_NO_FLAG;
49}
50
Chris Lattner505aa6c2009-07-10 07:20:05 +000051/// ClassifyGlobalReference - Classify a global variable reference for the
52/// current subtarget according to how we should reference it in a non-pcrel
53/// context.
54unsigned char X86Subtarget::
55ClassifyGlobalReference(const GlobalValue *GV, const TargetMachine &TM) const {
56 // DLLImport only exists on windows, it is implemented as a load from a
57 // DLLIMPORT stub.
58 if (GV->hasDLLImportLinkage())
59 return X86II::MO_DLLIMPORT;
60
Jeffrey Yasskin62de4e72010-01-27 20:34:15 +000061 // Materializable GVs (in JIT lazy compilation mode) do not require an
Evan Chengf20a33d2009-07-16 22:53:10 +000062 // extra load from stub.
Jeffrey Yasskin62de4e72010-01-27 20:34:15 +000063 bool isDecl = GV->isDeclaration() && !GV->isMaterializable();
Evan Chengf20a33d2009-07-16 22:53:10 +000064
Chris Lattner505aa6c2009-07-10 07:20:05 +000065 // X86-64 in PIC mode.
66 if (isPICStyleRIPRel()) {
67 // Large model never uses stubs.
68 if (TM.getCodeModel() == CodeModel::Large)
69 return X86II::MO_NO_FLAG;
70
Chris Lattner66c50b32009-07-10 21:01:59 +000071 if (isTargetDarwin()) {
72 // If symbol visibility is hidden, the extra load is not needed if
73 // target is x86-64 or the symbol is definitely defined in the current
74 // translation unit.
75 if (GV->hasDefaultVisibility() &&
Evan Chengf20a33d2009-07-16 22:53:10 +000076 (isDecl || GV->isWeakForLinker()))
Chris Lattner66c50b32009-07-10 21:01:59 +000077 return X86II::MO_GOTPCREL;
78 } else {
79 assert(isTargetELF() && "Unknown rip-relative target");
Chris Lattner505aa6c2009-07-10 07:20:05 +000080
Chris Lattner66c50b32009-07-10 21:01:59 +000081 // Extra load is needed for all externally visible.
82 if (!GV->hasLocalLinkage() && GV->hasDefaultVisibility())
83 return X86II::MO_GOTPCREL;
84 }
Chris Lattner505aa6c2009-07-10 07:20:05 +000085
86 return X86II::MO_NO_FLAG;
87 }
88
89 if (isPICStyleGOT()) { // 32-bit ELF targets.
90 // Extra load is needed for all externally visible.
91 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility())
92 return X86II::MO_GOTOFF;
93 return X86II::MO_GOT;
94 }
95
Chris Lattner2e9393c2009-07-10 21:00:45 +000096 if (isPICStyleStubPIC()) { // Darwin/32 in PIC mode.
Chris Lattner144e3482009-07-10 20:53:38 +000097 // Determine whether we have a stub reference and/or whether the reference
98 // is relative to the PIC base or not.
Chris Lattner505aa6c2009-07-10 07:20:05 +000099
100 // If this is a strong reference to a definition, it is definitely not
101 // through a stub.
Evan Chengf20a33d2009-07-16 22:53:10 +0000102 if (!isDecl && !GV->isWeakForLinker())
Chris Lattner144e3482009-07-10 20:53:38 +0000103 return X86II::MO_PIC_BASE_OFFSET;
Chris Lattner505aa6c2009-07-10 07:20:05 +0000104
105 // Unless we have a symbol with hidden visibility, we have to go through a
106 // normal $non_lazy_ptr stub because this symbol might be resolved late.
Chris Lattner144e3482009-07-10 20:53:38 +0000107 if (!GV->hasHiddenVisibility()) // Non-hidden $non_lazy_ptr reference.
108 return X86II::MO_DARWIN_NONLAZY_PIC_BASE;
Chris Lattner505aa6c2009-07-10 07:20:05 +0000109
110 // If symbol visibility is hidden, we have a stub for common symbol
111 // references and external declarations.
Evan Chengf20a33d2009-07-16 22:53:10 +0000112 if (isDecl || GV->hasCommonLinkage()) {
Chris Lattner505aa6c2009-07-10 07:20:05 +0000113 // Hidden $non_lazy_ptr reference.
Chris Lattner144e3482009-07-10 20:53:38 +0000114 return X86II::MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE;
Chris Lattner505aa6c2009-07-10 07:20:05 +0000115 }
116
117 // Otherwise, no stub.
Chris Lattner144e3482009-07-10 20:53:38 +0000118 return X86II::MO_PIC_BASE_OFFSET;
119 }
120
Chris Lattner2e9393c2009-07-10 21:00:45 +0000121 if (isPICStyleStubNoDynamic()) { // Darwin/32 in -mdynamic-no-pic mode.
Chris Lattner144e3482009-07-10 20:53:38 +0000122 // Determine whether we have a stub reference.
123
124 // If this is a strong reference to a definition, it is definitely not
125 // through a stub.
Evan Chengf20a33d2009-07-16 22:53:10 +0000126 if (!isDecl && !GV->isWeakForLinker())
Chris Lattner144e3482009-07-10 20:53:38 +0000127 return X86II::MO_NO_FLAG;
128
129 // Unless we have a symbol with hidden visibility, we have to go through a
130 // normal $non_lazy_ptr stub because this symbol might be resolved late.
131 if (!GV->hasHiddenVisibility()) // Non-hidden $non_lazy_ptr reference.
132 return X86II::MO_DARWIN_NONLAZY;
Evan Chengba2cf3d2009-09-03 07:04:02 +0000133
Chris Lattner144e3482009-07-10 20:53:38 +0000134 // Otherwise, no stub.
135 return X86II::MO_NO_FLAG;
Chris Lattner505aa6c2009-07-10 07:20:05 +0000136 }
137
138 // Direct static reference to global.
139 return X86II::MO_NO_FLAG;
140}
141
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000142
Bill Wendling5db7ffb2008-09-30 21:22:07 +0000143/// getBZeroEntry - This function returns the name of a function which has an
144/// interface like the non-standard bzero function, if such a function exists on
145/// the current subtarget and it is considered prefereable over memset with zero
146/// passed as the second argument. Otherwise it returns null.
Bill Wendlingd3752032008-09-30 22:05:33 +0000147const char *X86Subtarget::getBZeroEntry() const {
Dan Gohmanf95c2bf2008-04-01 20:38:36 +0000148 // Darwin 10 has a __bzero entry point for this purpose.
149 if (getDarwinVers() >= 10)
Bill Wendlingd3752032008-09-30 22:05:33 +0000150 return "__bzero";
Dan Gohmanf95c2bf2008-04-01 20:38:36 +0000151
152 return 0;
153}
154
Evan Cheng6d35a4d2009-05-20 04:53:57 +0000155/// IsLegalToCallImmediateAddr - Return true if the subtarget allows calls
156/// to immediate address.
157bool X86Subtarget::IsLegalToCallImmediateAddr(const TargetMachine &TM) const {
158 if (Is64Bit)
159 return false;
160 return isTargetELF() || TM.getRelocationModel() == Reloc::Static;
161}
162
Dan Gohman47170992008-12-16 03:35:01 +0000163/// getSpecialAddressLatency - For targets where it is beneficial to
164/// backschedule instructions that compute addresses, return a value
165/// indicating the number of scheduling cycles of backscheduling that
166/// should be attempted.
167unsigned X86Subtarget::getSpecialAddressLatency() const {
168 // For x86 out-of-order targets, back-schedule address computations so
169 // that loads and stores aren't blocked.
170 // This value was chosen arbitrarily.
171 return 200;
172}
173
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000174/// GetCpuIDAndInfo - Execute the specified cpuid and return the 4 values in the
175/// specified arguments. If we can't run cpuid on the host, return true.
Daniel Dunbar9cc58802009-09-03 05:47:34 +0000176static bool GetCpuIDAndInfo(unsigned value, unsigned *rEAX,
177 unsigned *rEBX, unsigned *rECX, unsigned *rEDX) {
Anton Korobeynikovb5cc6d82009-08-28 16:06:41 +0000178#if defined(__x86_64__) || defined(_M_AMD64) || defined (_M_X64)
Chris Lattner1d8091f2009-04-25 18:27:23 +0000179 #if defined(__GNUC__)
180 // gcc doesn't know cpuid would clobber ebx/rbx. Preseve it manually.
181 asm ("movq\t%%rbx, %%rsi\n\t"
182 "cpuid\n\t"
183 "xchgq\t%%rbx, %%rsi\n\t"
184 : "=a" (*rEAX),
185 "=S" (*rEBX),
186 "=c" (*rECX),
187 "=d" (*rEDX)
188 : "a" (value));
189 return false;
190 #elif defined(_MSC_VER)
191 int registers[4];
192 __cpuid(registers, value);
193 *rEAX = registers[0];
194 *rEBX = registers[1];
195 *rECX = registers[2];
196 *rEDX = registers[3];
197 return false;
198 #endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000199#elif defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)
Chris Lattner1d8091f2009-04-25 18:27:23 +0000200 #if defined(__GNUC__)
201 asm ("movl\t%%ebx, %%esi\n\t"
202 "cpuid\n\t"
203 "xchgl\t%%ebx, %%esi\n\t"
204 : "=a" (*rEAX),
205 "=S" (*rEBX),
206 "=c" (*rECX),
207 "=d" (*rEDX)
208 : "a" (value));
209 return false;
210 #elif defined(_MSC_VER)
211 __asm {
212 mov eax,value
213 cpuid
214 mov esi,rEAX
215 mov dword ptr [esi],eax
216 mov esi,rEBX
217 mov dword ptr [esi],ebx
218 mov esi,rECX
219 mov dword ptr [esi],ecx
220 mov esi,rEDX
221 mov dword ptr [esi],edx
222 }
223 return false;
224 #endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000225#endif
226 return true;
227}
228
Evan Cheng95a77fd2009-01-02 05:35:45 +0000229static void DetectFamilyModel(unsigned EAX, unsigned &Family, unsigned &Model) {
230 Family = (EAX >> 8) & 0xf; // Bits 8 - 11
231 Model = (EAX >> 4) & 0xf; // Bits 4 - 7
232 if (Family == 6 || Family == 0xf) {
233 if (Family == 0xf)
234 // Examine extended family ID if family ID is F.
235 Family += (EAX >> 20) & 0xff; // Bits 20 - 27
236 // Examine extended model ID if family ID is 6 or F.
237 Model += ((EAX >> 16) & 0xf) << 4; // Bits 16 - 19
238 }
239}
240
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000241void X86Subtarget::AutoDetectSubtargetFeatures() {
242 unsigned EAX = 0, EBX = 0, ECX = 0, EDX = 0;
243 union {
244 unsigned u[3];
245 char c[12];
246 } text;
247
Evan Cheng5746a942009-09-03 04:37:05 +0000248 if (GetCpuIDAndInfo(0, &EAX, text.u+0, text.u+2, text.u+1))
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000249 return;
250
Evan Cheng5746a942009-09-03 04:37:05 +0000251 GetCpuIDAndInfo(0x1, &EAX, &EBX, &ECX, &EDX);
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000252
Chris Lattner556464f2009-09-02 05:53:04 +0000253 if ((EDX >> 15) & 1) HasCMov = true;
254 if ((EDX >> 23) & 1) X86SSELevel = MMX;
255 if ((EDX >> 25) & 1) X86SSELevel = SSE1;
256 if ((EDX >> 26) & 1) X86SSELevel = SSE2;
Daniel Dunbar9cc58802009-09-03 05:47:34 +0000257 if (ECX & 0x1) X86SSELevel = SSE3;
Chris Lattner556464f2009-09-02 05:53:04 +0000258 if ((ECX >> 9) & 1) X86SSELevel = SSSE3;
259 if ((ECX >> 19) & 1) X86SSELevel = SSE41;
260 if ((ECX >> 20) & 1) X86SSELevel = SSE42;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000261
Evan Cheng95a77fd2009-01-02 05:35:45 +0000262 bool IsIntel = memcmp(text.c, "GenuineIntel", 12) == 0;
263 bool IsAMD = !IsIntel && memcmp(text.c, "AuthenticAMD", 12) == 0;
David Greene8bf22bc2009-06-26 22:46:54 +0000264
265 HasFMA3 = IsIntel && ((ECX >> 12) & 0x1);
266 HasAVX = ((ECX >> 28) & 0x1);
Eric Christopher7a703fd2010-04-02 21:54:27 +0000267 HasAES = IsIntel && ((ECX >> 25) & 0x1);
David Greene8bf22bc2009-06-26 22:46:54 +0000268
Evan Cheng95a77fd2009-01-02 05:35:45 +0000269 if (IsIntel || IsAMD) {
270 // Determine if bit test memory instructions are slow.
271 unsigned Family = 0;
272 unsigned Model = 0;
273 DetectFamilyModel(EAX, Family, Model);
274 IsBTMemSlow = IsAMD || (Family == 6 && Model >= 13);
Evan Cheng6c020ea2010-04-01 05:58:17 +0000275 // If it's Nehalem, unaligned memory access is fast.
276 if (Family == 15 && Model == 26)
277 IsUAMemFast = true;
Evan Cheng95a77fd2009-01-02 05:35:45 +0000278
Evan Cheng5746a942009-09-03 04:37:05 +0000279 GetCpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX);
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000280 HasX86_64 = (EDX >> 29) & 0x1;
Stefanus Du Toitfe086e62009-05-26 21:04:35 +0000281 HasSSE4A = IsAMD && ((ECX >> 6) & 0x1);
David Greene8bf22bc2009-06-26 22:46:54 +0000282 HasFMA4 = IsAMD && ((ECX >> 16) & 0x1);
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000283 }
284}
285
Daniel Dunbarb711cf02009-08-02 22:11:08 +0000286X86Subtarget::X86Subtarget(const std::string &TT, const std::string &FS,
287 bool is64Bit)
Chris Lattner2c048f22009-08-11 23:01:09 +0000288 : PICStyle(PICStyles::None)
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000289 , X86SSELevel(NoMMXSSE)
Evan Chengb6992de2008-04-16 19:03:02 +0000290 , X863DNowLevel(NoThreeDNow)
Chris Lattner556464f2009-09-02 05:53:04 +0000291 , HasCMov(false)
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000292 , HasX86_64(false)
David Greene8bf22bc2009-06-26 22:46:54 +0000293 , HasSSE4A(false)
294 , HasAVX(false)
Eric Christopher7a703fd2010-04-02 21:54:27 +0000295 , HasAES(false)
David Greene8bf22bc2009-06-26 22:46:54 +0000296 , HasFMA3(false)
297 , HasFMA4(false)
Evan Cheng95a77fd2009-01-02 05:35:45 +0000298 , IsBTMemSlow(false)
Evan Cheng6c020ea2010-04-01 05:58:17 +0000299 , IsUAMemFast(false)
David Greene5235d412010-01-11 16:29:42 +0000300 , HasVectorUAMem(false)
Evan Cheng1870cf52010-04-21 01:47:12 +0000301 , Promote16Bit(DoPromote16Bit)
Chris Lattner93a2d432008-01-02 19:44:55 +0000302 , DarwinVers(0)
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000303 , stackAlignment(8)
304 // FIXME: this is a known good value for Yonah. How about others?
Rafael Espindola7afa9b12007-10-31 11:52:06 +0000305 , MaxInlineSizeThreshold(128)
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000306 , Is64Bit(is64Bit)
307 , TargetType(isELF) { // Default to ELF unless otherwise specified.
Anton Korobeynikov11713322009-06-08 22:53:56 +0000308
309 // default to hard float ABI
310 if (FloatABIType == FloatABI::Default)
311 FloatABIType = FloatABI::Hard;
Mon P Wang078a62d2008-05-05 19:05:59 +0000312
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000313 // Determine default and user specified characteristics
314 if (!FS.empty()) {
315 // If feature string is not empty, parse features string.
Daniel Dunbar91c44412009-11-14 10:09:12 +0000316 std::string CPU = sys::getHostCPUName();
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000317 ParseSubtargetFeatures(FS, CPU);
Edwin Török4031b792009-02-02 21:57:34 +0000318 // All X86-64 CPUs also have SSE2, however user might request no SSE via
319 // -mattr, so don't force SSELevel here.
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000320 } else {
321 // Otherwise, use CPUID to auto-detect feature set.
322 AutoDetectSubtargetFeatures();
Dan Gohman4092bbc2009-02-03 00:04:43 +0000323 // Make sure SSE2 is enabled; it is available on all X86-64 CPUs.
324 if (Is64Bit && X86SSELevel < SSE2)
325 X86SSELevel = SSE2;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000326 }
Dan Gohman4092bbc2009-02-03 00:04:43 +0000327
Dan Gohmand3ef6c92009-02-03 18:53:21 +0000328 // If requesting codegen for X86-64, make sure that 64-bit features
329 // are enabled.
Chris Lattnerd1912b62010-03-14 22:39:35 +0000330 if (Is64Bit) {
Dan Gohmand3ef6c92009-02-03 18:53:21 +0000331 HasX86_64 = true;
332
Chris Lattnerd1912b62010-03-14 22:39:35 +0000333 // All 64-bit cpus have cmov support.
334 HasCMov = true;
335 }
336
337
David Greened92ece72010-01-05 01:29:13 +0000338 DEBUG(dbgs() << "Subtarget features: SSELevel " << X86SSELevel
Bill Wendlingbdfa3be2009-08-03 00:11:34 +0000339 << ", 3DNowLevel " << X863DNowLevel
340 << ", 64bit " << HasX86_64 << "\n");
Dan Gohman4092bbc2009-02-03 00:04:43 +0000341 assert((!Is64Bit || HasX86_64) &&
342 "64-bit code requested on a subtarget that doesn't support it!");
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000343
344 // Set the boolean corresponding to the current target triple, or the default
345 // if one cannot be determined, to true.
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000346 if (TT.length() > 5) {
Duncan Sandsdfd94582008-01-08 10:06:15 +0000347 size_t Pos;
Chris Lattner93a2d432008-01-02 19:44:55 +0000348 if ((Pos = TT.find("-darwin")) != std::string::npos) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000349 TargetType = isDarwin;
Chris Lattner93a2d432008-01-02 19:44:55 +0000350
351 // Compute the darwin version number.
352 if (isdigit(TT[Pos+7]))
353 DarwinVers = atoi(&TT[Pos+7]);
354 else
355 DarwinVers = 8; // Minimum supported darwin is Tiger.
Dan Gohmana65530a2008-05-05 00:28:39 +0000356 } else if (TT.find("linux") != std::string::npos) {
Dan Gohman2593e2b2008-05-05 16:11:31 +0000357 // Linux doesn't imply ELF, but we don't currently support anything else.
358 TargetType = isELF;
Chris Lattner93a2d432008-01-02 19:44:55 +0000359 } else if (TT.find("cygwin") != std::string::npos) {
360 TargetType = isCygwin;
361 } else if (TT.find("mingw") != std::string::npos) {
362 TargetType = isMingw;
363 } else if (TT.find("win32") != std::string::npos) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000364 TargetType = isWindows;
Anton Korobeynikovf0ce64b2008-03-22 21:12:53 +0000365 } else if (TT.find("windows") != std::string::npos) {
366 TargetType = isWindows;
Daniel Dunbarfa0c2a82009-08-05 18:12:37 +0000367 } else if (TT.find("-cl") != std::string::npos) {
Mon P Wang23bbfc32009-02-28 00:25:30 +0000368 TargetType = isDarwin;
369 DarwinVers = 9;
370 }
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000371 }
372
Anton Korobeynikovcdd93812008-04-23 18:16:16 +0000373 // Stack alignment is 16 bytes on Darwin (both 32 and 64 bit) and for all 64
374 // bit targets.
375 if (TargetType == isDarwin || Is64Bit)
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000376 stackAlignment = 16;
Anton Korobeynikov06c42402008-04-12 22:12:22 +0000377
378 if (StackAlignment)
379 stackAlignment = StackAlignment;
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000380}