2012-07-10 02:34:21 +08:00
|
|
|
// REQUIRES: arm-registered-target
|
2011-04-15 04:06:49 +08:00
|
|
|
// RUN: %clang_cc1 -triple arm-none-linux-gnueabi -emit-llvm -w -o - < %s | FileCheck %s
|
|
|
|
typedef int __attribute__((pcs("aapcs"))) (*aapcs_fn)(void);
|
|
|
|
typedef int __attribute__((pcs("aapcs-vfp"))) (*aapcs_vfp_fn)(void);
|
|
|
|
|
|
|
|
aapcs_fn bar;
|
|
|
|
|
|
|
|
int foo(aapcs_vfp_fn baz) {
|
2020-02-04 02:09:39 +08:00
|
|
|
// CHECK-LABEL: define i32 @foo
|
2011-04-15 04:06:49 +08:00
|
|
|
// CHECK: call arm_aapcscc
|
|
|
|
// CHECK: call arm_aapcs_vfpcc
|
|
|
|
return bar() + baz();
|
|
|
|
}
|