1 // RUN: %clang_cc1 -triple aarch64-pc-windows-msvc -fobjc-runtime=gnustep-2.2 -fobjc-dispatch-method=non-legacy -emit-llvm -o - %s | FileCheck %s
3 // Pass and return for type size <= 8 bytes.
8 // Pass and return hfa <= 8 bytes
13 // Pass and return for type size > 16 bytes.
18 // Pass and return aggregate (of size < 16 bytes) with non-trivial destructor.
19 // Sret and inreg: Returned in x0
28 @interface MsgTest { id isa; } @end
29 @implementation MsgTest
45 for (int i = 0; i < 5; i++) {
52 for (int i = 0; i < 3; i++) {
57 + (S3) msgTestStretInRegS3 {
59 for (int i = 0; i < 3; i++) {
66 void test0(MsgTest *t) {
67 // CHECK: call {{.*}} @objc_msgSend
69 // CHECK: call {{.*}} @objc_msgSend
70 F1 ret2 = [t smallF1];
71 // CHECK: call {{.*}} @objc_msgSend_stret
72 S2 ret3 = [t stretS2];
73 // CHECK: call {{.*}} @objc_msgSend_stret2
74 S3 ret4 = [t stretInRegS3];
75 // CHECK: call {{.*}} @objc_msgSend_stret2
76 S3 ret5 = [MsgTest msgTestStretInRegS3];