mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
Testcase for llvm-gcc checkin 111482.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f0e132c385
commit
a69c4939d9
15
test/FrontendC/misaligned-param.c
Normal file
15
test/FrontendC/misaligned-param.c
Normal file
@ -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
Block a user