2011-10-02 09:16:38 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-fragile-abi -emit-llvm -o - %s | \
|
2010-07-20 01:11:38 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-X86_32 %s
|
|
|
|
//
|
2011-10-02 09:16:38 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-fragile-abi -emit-llvm -o - %s | \
|
2010-07-20 01:11:38 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-X86_64 %s
|
|
|
|
//
|
2011-10-02 09:16:38 +08:00
|
|
|
// RUN: %clang_cc1 -triple armv7-apple-darwin10 -fobjc-fragile-abi -emit-llvm -target-abi apcs-gnu -o - %s | \
|
2010-07-20 01:11:38 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ARMV7 %s
|
|
|
|
|
|
|
|
@interface A
|
|
|
|
-(float) floatValue;
|
|
|
|
-(double) doubleValue;
|
|
|
|
-(long double) longDoubleValue;
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK-X86_32: define void @t0()
|
2011-03-01 05:19:34 +08:00
|
|
|
// CHECK-X86_32: call float bitcast {{.*}} @objc_msgSend_fpret to
|
2011-03-02 01:28:13 +08:00
|
|
|
// CHECK-X86_32: call double bitcast {{.*}} @objc_msgSend_fpret to
|
2011-03-01 05:19:34 +08:00
|
|
|
// CHECK-X86_32: call x86_fp80 bitcast {{.*}} @objc_msgSend_fpret to
|
2010-07-20 01:11:38 +08:00
|
|
|
// CHECK-X86_32: }
|
|
|
|
//
|
|
|
|
// CHECK-X86_64: define void @t0()
|
2011-03-01 05:19:34 +08:00
|
|
|
// CHECK-X86_64: call float bitcast {{.*}} @objc_msgSend to
|
|
|
|
// CHECK-X86_64: call double bitcast {{.*}} @objc_msgSend to
|
|
|
|
// CHECK-X86_64: call x86_fp80 bitcast {{.*}} @objc_msgSend_fpret to
|
2010-07-20 01:11:38 +08:00
|
|
|
// CHECK-X86_64: }
|
|
|
|
//
|
|
|
|
// CHECK-ARMV7: define void @t0()
|
2011-03-01 05:19:34 +08:00
|
|
|
// CHECK-ARMV7: call float bitcast {{.*}} @objc_msgSend to
|
|
|
|
// CHECK-ARMV7: call double bitcast {{.*}} @objc_msgSend to
|
|
|
|
// CHECK-ARMV7: call double bitcast {{.*}} @objc_msgSend to
|
2010-07-20 01:11:38 +08:00
|
|
|
// CHECK-ARMV7: }
|
|
|
|
void t0() {
|
|
|
|
[(A*)0 floatValue];
|
|
|
|
[(A*)0 doubleValue];
|
|
|
|
[(A*)0 longDoubleValue];
|
|
|
|
}
|