[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / CodeGen / arm-cc.c
blob74eecc755f7505a9e7659d4d91c7ce4370205f7c
1 // RUN: %clang_cc1 -triple armv7-apple-darwin9 -target-abi apcs-gnu -emit-llvm -w -o - %s | FileCheck -check-prefix=DARWIN-APCS %s
2 // RUN: %clang_cc1 -triple armv7-apple-darwin9 -target-abi aapcs -emit-llvm -w -o - %s | FileCheck -check-prefix=DARWIN-AAPCS %s
3 // RUN: %clang_cc1 -triple arm-none-linux-gnueabi -target-abi apcs-gnu -emit-llvm -w -o - %s | FileCheck -check-prefix=LINUX-APCS %s
4 // RUN: %clang_cc1 -triple arm-none-linux-gnueabi -target-abi aapcs -emit-llvm -w -o - %s | FileCheck -check-prefix=LINUX-AAPCS %s
7 // DARWIN-APCS: define void @f()
8 // DARWIN-APCS: call void @g
9 // DARWIN-AAPCS: define arm_aapcscc void @f()
10 // DARWIN-AAPCS: call arm_aapcscc void @g
11 // LINUX-APCS: define arm_apcscc void @f()
12 // LINUX-APCS: call arm_apcscc void @g
13 // LINUX-AAPCS: define void @f()
14 // LINUX-AAPCS: call void @g
15 void g(void);
16 void f(void) {
17 g();