]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/arm-pcs.c
Vendor import of clang release_38 branch r258549:
[FreeBSD/FreeBSD.git] / test / CodeGen / arm-pcs.c
1 // REQUIRES: arm-registered-target
2 // RUN: %clang_cc1 -triple arm-none-linux-gnueabi -emit-llvm -w -o - < %s | FileCheck %s
3 typedef int __attribute__((pcs("aapcs"))) (*aapcs_fn)(void);
4 typedef int __attribute__((pcs("aapcs-vfp"))) (*aapcs_vfp_fn)(void);
5
6 aapcs_fn bar;
7
8 int foo(aapcs_vfp_fn baz) {
9 // CHECK-LABEL: define i32 @foo
10 // CHECK: call arm_aapcscc
11 // CHECK: call arm_aapcs_vfpcc
12   return bar() + baz();
13 }