mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
a314afe658
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112748 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
467 B
C
16 lines
467 B
C
// RUN: %llvmgcc %s -m32 -S -o - | FileCheck %s
|
|
// Misaligned parameter must be memcpy'd to correctly aligned temporary.
|
|
// XFAIL: *
|
|
// XTARGET: i386-apple-darwin,i686-apple-darwin,x86_64-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);
|
|
}
|