blob: 5f7c76d6cdd8d30ea7c9d5f47276b291006df4e0 [file] [log] [blame]
John McCall260611a2012-06-20 06:18:46 +00001// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | \
Anders Carlssoneea64802011-10-31 16:27:11 +00002// RUN: FileCheck --check-prefix=CHECK-X86_32 %s
3//
John McCall260611a2012-06-20 06:18:46 +00004// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | \
Anders Carlssoneea64802011-10-31 16:27:11 +00005// RUN: FileCheck --check-prefix=CHECK-X86_64 %s
6//
John McCall260611a2012-06-20 06:18:46 +00007// RUN: %clang_cc1 -triple armv7-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -target-abi apcs-gnu -o - %s | \
Anders Carlssoneea64802011-10-31 16:27:11 +00008// RUN: FileCheck --check-prefix=CHECK-ARMV7 %s
9
10@interface A
11-(_Complex long double) complexLongDoubleValue;
12@end
13
14
Stephen Lin93ab6bf2013-08-15 06:47:53 +000015// CHECK-X86_32-LABEL: define void @t0()
Anders Carlssoneea64802011-10-31 16:27:11 +000016// CHECK-X86_32: call void bitcast {{.*}} @objc_msgSend_stret to
17// CHECK-X86_32: }
18//
Stephen Lin93ab6bf2013-08-15 06:47:53 +000019// CHECK-X86_64-LABEL: define void @t0()
Anders Carlssoneea64802011-10-31 16:27:11 +000020// CHECK-X86_64: call { x86_fp80, x86_fp80 } bitcast {{.*}} @objc_msgSend_fp2ret to
21// CHECK-X86_64: }
22//
Stephen Lin93ab6bf2013-08-15 06:47:53 +000023// CHECK-ARMV7-LABEL: define void @t0()
Anders Carlssoneea64802011-10-31 16:27:11 +000024// CHECK-ARMV7: call i128 bitcast {{.*}} @objc_msgSend to
25// CHECK-ARMV7: }
26void t0() {
27 [(A*)0 complexLongDoubleValue];
28}