diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-03-29 15:09:45 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-03-29 15:09:45 +0000 |
| commit | a2ee433c8d99632419d4a13a66cc4d06eada4014 (patch) | |
| tree | e6ab2db8facbc4c5ed2fb11df260db8138572ace /clang/test/CodeGenObjC/stret.m | |
| parent | af3698066a1ea2e5ab4cc08ae9a59620cf18adb7 (diff) | |
| download | bcm5719-llvm-a2ee433c8d99632419d4a13a66cc4d06eada4014.tar.gz bcm5719-llvm-a2ee433c8d99632419d4a13a66cc4d06eada4014.zip | |
ARM64: initial clang support commit.
This adds Clang support for the ARM64 backend. There are definitely
still some rough edges, so please bring up any issues you see with
this patch.
As with the LLVM commit though, we think it'll be more useful for
merging with AArch64 from within the tree.
llvm-svn: 205100
Diffstat (limited to 'clang/test/CodeGenObjC/stret.m')
| -rw-r--r-- | clang/test/CodeGenObjC/stret.m | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/stret.m b/clang/test/CodeGenObjC/stret.m new file mode 100644 index 00000000000..beb6f302989 --- /dev/null +++ b/clang/test/CodeGenObjC/stret.m @@ -0,0 +1,22 @@ +// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck %s -check-prefix=X86 +// RUN: %clang_cc1 -fblocks -triple arm-apple-darwin %s -emit-llvm -o - | FileCheck %s -check-prefix=ARM +// RUN: %clang_cc1 -fblocks -triple arm64-apple-darwin %s -emit-llvm -o - | FileCheck %s -check-prefix=ARM64 + +// <rdar://problem/9757015>: Don't use 'stret' variants on ARM64. + +// X86: @main +// X86: @objc_msgSend_stret + +// ARM: @main +// ARM: @objc_msgSend_stret + +// ARM64: @main +// ARM64-NOT: @objc_msgSend_stret + +struct st { int i[1000]; }; +@interface Test ++(struct st)method; +@end +int main() { + [Test method]; +} |

