brintos

brintos / llvm-project-archived public Read only

0
0
Text · 420 B · 7d398ab Raw
14 lines · c
1// REQUIRES: arm-registered-target2// RUN: %clang_cc1 -triple arm-none-linux-gnueabi -emit-llvm -w -o - < %s | FileCheck %s3typedef int __attribute__((pcs("aapcs"))) (*aapcs_fn)(void);4typedef int __attribute__((pcs("aapcs-vfp"))) (*aapcs_vfp_fn)(void);5 6aapcs_fn bar;7 8int foo(aapcs_vfp_fn baz) {9// CHECK-LABEL: define{{.*}} i32 @foo10// CHECK: call arm_aapcscc11// CHECK: call arm_aapcs_vfpcc12  return bar() + baz();13}14