x86-32 long doubles are 4-byte aligned on the stack
authorDale Johannesen <dalej@apple.com>
Fri, 14 Dec 2007 19:25:34 +0000 (19:25 +0000)
committerDale Johannesen <dalej@apple.com>
Fri, 14 Dec 2007 19:25:34 +0000 (19:25 +0000)
for parameter passing (only for that, on Darwin).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45038 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86CallingConv.td

index aacd5a401d7b72e4cf5feb8e063f4b88d1bcc1a8..c1196e68756739e92bd4cf4c684d473ed74a9ce8 100644 (file)
@@ -183,7 +183,7 @@ def CC_X86_32_Common : CallingConv<[
 
   // Long doubles get slots whose size and alignment depends on the
   // subtarget.
-  CCIfType<[f80], CCAssignToStack<0, 0>>,
+  CCIfType<[f80], CCAssignToStack<16, 4>>,
 
   // The first 4 vector arguments are passed in XMM registers.
   CCIfType<[v16i8, v8i16, v4i32, v2i64, v4f32, v2f64],