// REQUIRES: arm-registered-target
// RUN: %clang_cc1 -triple thumbv7m-unknown-unknown-eabi -emit-llvm %s -o - \
// RUN: | FileCheck %s --check-prefix=CHECK
void
// CHECK: define{{.*}} void @none() #[[#NONE:]]
void
// CHECK: define{{.*}} void @std() #[[#STD:]]
void
// CHECK: define{{.*}} void @btionly() #[[#BTI:]]
void
// CHECK: define{{.*}} void @paconly0() #[[#PAC:]]
void
// CHECK: define{{.*}} void @paconly1() #[[#PAC]]
void
// CHECK: define{{.*}} void @pacbti0() #[[#STD]]
void
// CHECK: define{{.*}} void @pacbti1() #[[#STD]]
void
// CHECK: define{{.*}} void @leaf() #[[#PACLEAF:]]
void
// CHECK: define{{.*}} void @btileaf() #[[#BTIPACLEAF:]]
// CHECK-DAG: attributes #[[#NONE]] = { {{.*}} "branch-target-enforcement"="false" {{.*}} "sign-return-address"="none"
// CHECK-DAG: attributes #[[#STD]] = { {{.*}} "branch-target-enforcement"="true" {{.*}} "sign-return-address"="non-leaf"
// CHECK-DAG: attributes #[[#BTI]] = { {{.*}} "branch-target-enforcement"="true" {{.*}} "sign-return-address"="none"
// CHECK-DAG: attributes #[[#PAC]] = { {{.*}} "branch-target-enforcement"="false" {{.*}} "sign-return-address"="non-leaf"
// CHECK-DAG: attributes #[[#PACLEAF]] = { {{.*}} "branch-target-enforcement"="false" {{.*}}"sign-return-address"="all"
// CHECK-DAG: attributes #[[#BTIPACLEAF]] = { {{.*}}"branch-target-enforcement"="true" {{.*}} "sign-return-address"="all"