2012-07-10 02:34:21 +08:00
|
|
|
// REQUIRES: arm-registered-target
|
2010-06-17 02:02:31 +08:00
|
|
|
// RUN: %clang_cc1 -triple armv7-apple-darwin9 -target-abi apcs-gnu -emit-llvm -w -o - %s | FileCheck -check-prefix=DARWIN-APCS %s
|
|
|
|
// RUN: %clang_cc1 -triple armv7-apple-darwin9 -target-abi aapcs -emit-llvm -w -o - %s | FileCheck -check-prefix=DARWIN-AAPCS %s
|
|
|
|
// RUN: %clang_cc1 -triple arm-none-linux-gnueabi -target-abi apcs-gnu -emit-llvm -w -o - %s | FileCheck -check-prefix=LINUX-APCS %s
|
|
|
|
// RUN: %clang_cc1 -triple arm-none-linux-gnueabi -target-abi aapcs -emit-llvm -w -o - %s | FileCheck -check-prefix=LINUX-AAPCS %s
|
|
|
|
|
|
|
|
|
2013-08-15 14:47:53 +08:00
|
|
|
// DARWIN-APCS-LABEL: define void @f()
|
2010-06-17 02:02:31 +08:00
|
|
|
// DARWIN-APCS: call void @g
|
2013-08-15 14:47:53 +08:00
|
|
|
// DARWIN-AAPCS-LABEL: define arm_aapcscc void @f()
|
2010-06-17 02:02:31 +08:00
|
|
|
// DARWIN-AAPCS: call arm_aapcscc void @g
|
2013-08-15 14:47:53 +08:00
|
|
|
// LINUX-APCS-LABEL: define arm_apcscc void @f()
|
2010-06-17 02:02:31 +08:00
|
|
|
// LINUX-APCS: call arm_apcscc void @g
|
2013-08-15 14:47:53 +08:00
|
|
|
// LINUX-AAPCS-LABEL: define void @f()
|
2010-06-17 02:02:31 +08:00
|
|
|
// LINUX-AAPCS: call void @g
|
|
|
|
void g(void);
|
|
|
|
void f(void) {
|
|
|
|
g();
|
|
|
|
}
|