diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-04-21 19:49:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-04-21 19:49:55 +0000 |
commit | 53fac692fa06c812490bbbc25cb14dae67c95685 (patch) | |
tree | 893632edf38f8e3467827b6577fe6936df738e8e /clang/test/CodeGen/x86_32-arguments.c | |
parent | f5dbc072a6df0ec4df8e16cffe667fa22eabd47f (diff) | |
download | bcm5719-llvm-53fac692fa06c812490bbbc25cb14dae67c95685.tar.gz bcm5719-llvm-53fac692fa06c812490bbbc25cb14dae67c95685.zip |
ABI/x86-32 & x86-64: Alignment on 'byval' must be set when when the alignment
exceeds the minimum ABI alignment.
llvm-svn: 102019
Diffstat (limited to 'clang/test/CodeGen/x86_32-arguments.c')
-rw-r--r-- | clang/test/CodeGen/x86_32-arguments.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/x86_32-arguments.c b/clang/test/CodeGen/x86_32-arguments.c index 42eeb434c39..01c3e236f3b 100644 --- a/clang/test/CodeGen/x86_32-arguments.c +++ b/clang/test/CodeGen/x86_32-arguments.c @@ -202,3 +202,15 @@ void f50(struct s50 a0) { } struct s51 { vvbp f0; int f1; }; void f51(struct s51 a0) { } +// CHECK: define void @f52(%struct.s52* byval align 16 %x) +struct s52 { + long double a; +}; +void f52(struct s52 x) {} + +// CHECK: define void @f53(%struct.s53* byval align 32 %x) +struct __attribute__((aligned(32))) s53 { + int x; + int y; +}; +void f53(struct s53 x) {} |