[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / arm-pcs.c
blob7d398ab71a12f09200cdc5eb6df86286443d0be0
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);
6 aapcs_fn bar;
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();