increasingly prevailing case to the point that new features like ARC don't even support the fragile ABI anymore. This required a little bit of reshuffling with exceptions because a check was assuming that ObjCNonFragileABI was only being set in ObjC mode, and that's actually a bit obnoxious to do. Most, though, it involved a perl script to translate a ton of test cases. Mostly no functionality change for driver users, although there are corner cases with disabling language-specific exceptions that we should handle more correctly now. llvm-svn: 140957
39 lines
1.3 KiB
Objective-C
39 lines
1.3 KiB
Objective-C
// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-fragile-abi -emit-llvm -o - %s | \
|
|
// RUN: FileCheck --check-prefix=CHECK-X86_32 %s
|
|
//
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-fragile-abi -emit-llvm -o - %s | \
|
|
// RUN: FileCheck --check-prefix=CHECK-X86_64 %s
|
|
//
|
|
// RUN: %clang_cc1 -triple armv7-apple-darwin10 -fobjc-fragile-abi -emit-llvm -target-abi apcs-gnu -o - %s | \
|
|
// RUN: FileCheck --check-prefix=CHECK-ARMV7 %s
|
|
|
|
@interface A
|
|
-(float) floatValue;
|
|
-(double) doubleValue;
|
|
-(long double) longDoubleValue;
|
|
@end
|
|
|
|
|
|
// CHECK-X86_32: define void @t0()
|
|
// CHECK-X86_32: call float bitcast {{.*}} @objc_msgSend_fpret to
|
|
// CHECK-X86_32: call double bitcast {{.*}} @objc_msgSend_fpret to
|
|
// CHECK-X86_32: call x86_fp80 bitcast {{.*}} @objc_msgSend_fpret to
|
|
// CHECK-X86_32: }
|
|
//
|
|
// CHECK-X86_64: define void @t0()
|
|
// 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
|
|
// CHECK-X86_64: }
|
|
//
|
|
// CHECK-ARMV7: define void @t0()
|
|
// CHECK-ARMV7: call float bitcast {{.*}} @objc_msgSend to
|
|
// CHECK-ARMV7: call double bitcast {{.*}} @objc_msgSend to
|
|
// CHECK-ARMV7: call double bitcast {{.*}} @objc_msgSend to
|
|
// CHECK-ARMV7: }
|
|
void t0() {
|
|
[(A*)0 floatValue];
|
|
[(A*)0 doubleValue];
|
|
[(A*)0 longDoubleValue];
|
|
}
|