diff options
| author | Jacques Pienaar <jpienaar@google.com> | 2016-04-26 00:09:29 +0000 |
|---|---|---|
| committer | Jacques Pienaar <jpienaar@google.com> | 2016-04-26 00:09:29 +0000 |
| commit | e74d91314abb82891dcd3e6f8ef6d91e4e97c981 (patch) | |
| tree | 880eb6df401ee00661201d1a2681d5d7abf25479 /clang/test | |
| parent | 5cf735a5b1f05e7a81a5cd1dc1fdacc5021e4dd2 (diff) | |
| download | bcm5719-llvm-e74d91314abb82891dcd3e6f8ef6d91e4e97c981.tar.gz bcm5719-llvm-e74d91314abb82891dcd3e6f8ef6d91e4e97c981.zip | |
[lanai] Update handling of structs in arguments to be passed in registers.
Previously aggregate types were passed byval, change the ABI to pass these in registers instead.
llvm-svn: 267496
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CodeGen/lanai-arguments.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/CodeGen/lanai-arguments.c b/clang/test/CodeGen/lanai-arguments.c index 43a6c3280c7..9ce4ed98a78 100644 --- a/clang/test/CodeGen/lanai-arguments.c +++ b/clang/test/CodeGen/lanai-arguments.c @@ -10,7 +10,7 @@ typedef struct { int aa; int bb; } s1; -// CHECK: define void @f1(%struct.s1* byval align 4 %i) +// CHECK: define void @f1(i32 inreg %i.coerce0, i32 inreg %i.coerce1) void f1(s1 i) {} typedef struct { @@ -61,8 +61,8 @@ union simple_union { int a; char b; }; -// Unions should be passed as byval structs. -// CHECK: define void @f9(%union.simple_union* byval align 4 %s) +// Unions should be passed inreg. +// CHECK: define void @f9(i32 inreg %s.coerce) void f9(union simple_union s) {} typedef struct { @@ -70,6 +70,6 @@ typedef struct { int b3 : 3; int b8 : 8; } bitfield1; -// Bitfields should be passed as byval structs. -// CHECK: define void @f10(%struct.bitfield1* byval align 4 %bf1) +// Bitfields should be passed inreg. +// CHECK: define void @f10(i32 inreg %bf1.coerce) void f10(bitfield1 bf1) {} |

