Home | History | Annotate | Download | only in CodeGen
      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: define i32 @foo
     10 // CHECK: call arm_aapcscc
     11 // CHECK: call arm_aapcs_vfpcc
     12   return bar() + baz();
     13 }
     14