forked from OSchip/llvm-project
parent
768d3b510c
commit
8d5f0208f2
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue