41 lines · plain
1; This test is added to provide test coverage for the 2; .cfi_sections .debug_frame intrinsic. It aims to make sure that for a AArch643; output compiled with -fno-exceptions, a .cfi_sections .debug_frame is emitted.4 5; RUN: llc --filetype=asm %s -o - | FileCheck %s6; CHECK: .cfi_sections .debug_frame7 8; ModuleID = 'test.cpp'9source_filename = "test.cpp"10target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"11target triple = "arm64-apple-macosx13.0.0"12 13; Function Attrs: noinline norecurse nounwind optnone ssp14define i32 @main() #0 !dbg !9 {15 %1 = alloca i32, align 416 store i32 0, ptr %1, align 417 ret i32 1, !dbg !1418}19 20attributes #0 = { noinline norecurse nounwind optnone ssp }21 22!llvm.module.flags = !{!0, !1, !2, !3, !4, !5}23!llvm.dbg.cu = !{!6}24!llvm.ident = !{!8}25 26!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 14, i32 0]}27!1 = !{i32 7, !"Dwarf Version", i32 4}28!2 = !{i32 2, !"Debug Info Version", i32 3}29!3 = !{i32 1, !"wchar_size", i32 4}30!4 = !{i32 8, !"PIC Level", i32 2}31!5 = !{i32 7, !"frame-pointer", i32 1}32!6 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !7, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None, sysroot: "/Applications/Xcode.app", sdk: "MacOSX.sdk")33!7 = !DIFile(filename: "test.cpp", directory: "/Users/shubham/Development")34!8 = !{!"clang"}35!9 = distinct !DISubprogram(name: "main", scope: !7, file: !7, line: 1, type: !10, scopeLine: 1, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !6, retainedNodes: !13)36!10 = !DISubroutineType(types: !11)37!11 = !{!12}38!12 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)39!13 = !{}40!14 = !DILocation(line: 2, column: 5, scope: !9)41