From: Dale Johannesen Date: Thu, 19 Aug 2010 00:09:07 +0000 (+0000) Subject: Testcase for llvm-gcc checkin 111482. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a69c4939d93209ad4b032bd6efe58c0a82cf1e7c;p=oota-llvm.git Testcase for llvm-gcc checkin 111482. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111483 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/FrontendC/misaligned-param.c b/test/FrontendC/misaligned-param.c new file mode 100644 index 00000000000..022dcaaa4af --- /dev/null +++ b/test/FrontendC/misaligned-param.c @@ -0,0 +1,15 @@ +// RUN: %llvmgcc %s -m32 -S -o - | FileCheck %s +// Misaligned parameter must be memcpy'd to correctly aligned temporary. +// XFAIL: * +// XTARGET: x86,i386,i686,darwin + +struct s { int x; long double y; }; +long double foo(struct s x, int i, struct s y) { +// CHECK: foo +// CHECK: %x_addr = alloca %struct.s, align 16 +// CHECK: %y_addr = alloca %struct.s, align 16 +// CHECK: memcpy +// CHECK: memcpy +// CHECK: bar + return bar(&x, &y); +}