1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 16:33:37 +01:00
llvm-mirror/test/FrontendC/misaligned-param.c
Dale Johannesen dae647d2ea Test should pass on non-Darwin x86.
llvm-svn: 111678
2010-08-20 21:18:55 +00:00

16 lines
428 B
C

// RUN: %llvmgcc %s -m32 -S -o - | FileCheck %s
// Misaligned parameter must be memcpy'd to correctly aligned temporary.
// XFAIL: *
// XTARGET: i386,i686,x86_64
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);
}