Apparently only Darwin passes long double misaligned. Compensate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112748 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dale Johannesen 2010-09-01 21:57:20 +00:00
parent 662fb77687
commit a314afe658

View File

@ -1,7 +1,7 @@
// RUN: %llvmgcc %s -m32 -S -o - | FileCheck %s
// Misaligned parameter must be memcpy'd to correctly aligned temporary.
// XFAIL: *
// XTARGET: i386,i686,x86_64
// XTARGET: i386-apple-darwin,i686-apple-darwin,x86_64-apple-darwin
struct s { int x; long double y; };
long double foo(struct s x, int i, struct s y) {