llvm-6502/test/FrontendC/misaligned-param.c
Dale Johannesen 722c2c5f2c Don't run test on PPC darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111668 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-20 18:29:27 +00:00

16 lines
449 B
C

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