2010-08-19 08:09:07 +08:00
|
|
|
// RUN: %llvmgcc %s -m32 -S -o - | FileCheck %s
|
|
|
|
// Misaligned parameter must be memcpy'd to correctly aligned temporary.
|
|
|
|
// XFAIL: *
|
2010-09-02 05:57:20 +08:00
|
|
|
// XTARGET: i386-apple-darwin,i686-apple-darwin,x86_64-apple-darwin
|
2010-08-19 08:09:07 +08:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|