1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Testcase for llvm-gcc checkin 111482.

llvm-svn: 111483
This commit is contained in:
Dale Johannesen 2010-08-19 00:09:07 +00:00
parent fa85185486
commit 2f32accda7

View File

@ -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);
}