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
|
2016-06-25 05:35:06 +08:00
|
|
|
// RUN: %clang_cc1 -triple arm-none-linux-musleabi -target-abi apcs-gnu -emit-llvm -w -o - %s | FileCheck -check-prefix=LINUX-APCS %s
|
|
|
|
// RUN: %clang_cc1 -triple arm-none-linux-musleabi -target-abi aapcs -emit-llvm -w -o - %s | FileCheck -check-prefix=LINUX-AAPCS %s
|
2016-05-13 22:45:57 +08:00
|
|
|
// RUN: %clang_cc1 -triple armv7-none-eabihf -target-abi aapcs-vfp -emit-llvm -w -o - %s | FileCheck -check-prefix=BAREMETAL-AAPCS_VFP %s
|
2010-06-17 02:02:31 +08:00
|
|
|
|
|
|
|
|
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
|
2020-02-04 02:09:39 +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
|
2020-02-04 02:09:39 +08:00
|
|
|
// LINUX-AAPCS-LABEL: define void @f()
|
2010-06-17 02:02:31 +08:00
|
|
|
// LINUX-AAPCS: call void @g
|
2020-02-04 02:09:39 +08:00
|
|
|
// BAREMETAL-AAPCS_VFP-LABEL: define void @f()
|
2016-05-13 22:45:57 +08:00
|
|
|
// BAREMETAL-AAPCS_VFP: call void @g
|
|
|
|
// BAREMETAL-AAPCS_VFP: declare void @g()
|
2010-06-17 02:02:31 +08:00
|
|
|
void g(void);
|
|
|
|
void f(void) {
|
|
|
|
g();
|
|
|
|
}
|