1; RUN: opt -mtriple=armv7-linux-android -S -cross-dso-cfi < %s | FileCheck --check-prefix=THUMB %s
2; RUN: opt -mtriple=thumbv7-linux-android -S -cross-dso-cfi < %s | FileCheck --check-prefix=THUMB %s
3; RUN: opt -mtriple=i386-linux -S -cross-dso-cfi < %s | FileCheck --check-prefix=NOTHUMB %s
4; RUN: opt -mtriple=x86_64-linux -S -cross-dso-cfi < %s | FileCheck --check-prefix=NOTHUMB %s
5
6target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
7
8define signext i8 @f() !type !0 !type !1 {
9entry:
10  ret i8 1
11}
12
13!llvm.module.flags = !{!2}
14
15!0 = !{i64 0, !"_ZTSFcvE"}
16!1 = !{i64 0, i64 111}
17!2 = !{i32 4, !"Cross-DSO CFI", i32 1}
18
19; THUMB: define void @__cfi_check({{.*}} #[[A:.*]] align 4096
20; THUMB: attributes #[[A]] = { {{.*}}"target-features"="+thumb-mode"
21
22; NOTHUMB: define void @__cfi_check({{.*}} align 4096
23