xref: /llvm-project/llvm/test/CodeGen/X86/apple-simulator-compact-unwind.ll (revision 62a1fbe9f7f95210480e166b9e4eb02a1389f54d)
1; RUN: llc -mtriple x86_64-apple-ios-simulator -filetype=obj -o - %s | \
2; RUN: llvm-objdump --macho --unwind-info - | \
3; RUN: FileCheck %s
4
5; RUN: llc -mtriple x86_64-apple-ios -filetype=obj -o - %s | \
6; RUN: llvm-objdump --macho --unwind-info - | \
7; RUN: FileCheck %s
8
9target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
10
11; Function Attrs: noinline nounwind optnone ssp uwtable
12define i32 @rdar104359594() #0 {
13entry:
14  ret i32 0
15}
16
17attributes #0 = { noinline nounwind optnone ssp uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtin-calloc" "no-builtin-stpcpy" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="core2" "target-features"="+cmov,+cx16,+cx8,+fxsr,+mmx,+sahf,+sse,+sse2,+sse3,+ssse3,+x87" "tune-cpu"="generic" }
18
19!llvm.module.flags = !{!0, !1, !2, !3}
20!llvm.ident = !{!4}
21
22!0 = !{i32 1, !"wchar_size", i32 4}
23!1 = !{i32 8, !"PIC Level", i32 2}
24!2 = !{i32 7, !"uwtable", i32 2}
25!3 = !{i32 7, !"frame-pointer", i32 2}
26!4 = !{!"clang"}
27
28; Check that we generate compact unwind for simulators, which have always
29; supported it.
30; CHECK: Contents of __compact_unwind section:
31