blob: 355968746cf2631e8ddfc14422f5337e46764296 [file] [log] [blame]
Ehsan Amiria538b0f2016-08-03 18:17:35 +00001; RUN: llc -verify-machineinstrs < %s | FileCheck %s
Hal Finkel52727c62013-07-02 03:39:34 +00002target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
3target triple = "powerpc64-unknown-linux-gnu"
4
5; Function Attrs: nounwind
Peter Collingbourned4bff302015-11-05 22:03:56 +00006define void @foo() #0 !dbg !4 {
Hal Finkel52727c62013-07-02 03:39:34 +00007entry:
8 call void @llvm.eh.unwind.init(), !dbg !9
9 ret void, !dbg !10
10}
11
12; CHECK: @foo
13; CHECK-NOT: .cfi_offset vrsave
14; CHECK: blr
15
16; Function Attrs: nounwind
17declare void @llvm.eh.unwind.init() #0
18
19attributes #0 = { nounwind }
20
21!llvm.dbg.cu = !{!0}
Manman Ren409558f2013-11-22 21:49:45 +000022!llvm.module.flags = !{!8, !11}
Hal Finkel52727c62013-07-02 03:39:34 +000023
Adrian Prantl75819ae2016-04-15 15:57:41 +000024!0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.4", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !2, globals: !2, imports: !2)
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000025!1 = !DIFile(filename: "/tmp/unwind-dw2.c", directory: "/tmp")
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000026!2 = !{}
Adrian Prantl75819ae2016-04-15 15:57:41 +000027!4 = distinct !DISubprogram(name: "foo", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !0, scopeLine: 1, file: !1, scope: !5, type: !6, variables: !2)
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000028!5 = !DIFile(filename: "/tmp/unwind-dw2.c", directory: "/tmp")
29!6 = !DISubroutineType(types: !7)
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000030!7 = !{null}
31!8 = !{i32 2, !"Dwarf Version", i32 3}
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000032!9 = !DILocation(line: 2, scope: !4)
33!10 = !DILocation(line: 3, scope: !4)
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +000034!11 = !{i32 1, !"Debug Info Version", i32 3}