blob: cc7101b50adabfa032432288413bf4c40df0265f [file] [log] [blame]
Matthias Braunf89b7c72015-09-18 17:57:28 +00001; RUN: llc -debug -dag-dump-verbose < %s 2>&1 | FileCheck %s
Sergey Dmitrouk842a51b2015-04-28 14:05:47 +00002; REQUIRES: asserts
3
Matthias Braun0b7d6c12015-09-18 17:41:00 +00004; CHECK: t{{[0-9]+}}: i32 = Constant<-1>test.c:4:5
Sergey Dmitrouk842a51b2015-04-28 14:05:47 +00005
Peter Collingbourned4bff302015-11-05 22:03:56 +00006define i32 @main() !dbg !4 {
Sergey Dmitrouk842a51b2015-04-28 14:05:47 +00007entry:
8 %retval = alloca i32, align 4
9 store i32 0, i32* %retval
10 ret i32 -1, !dbg !10
11}
12
13!llvm.dbg.cu = !{!0}
14!llvm.module.flags = !{!8, !9}
15
Adrian Prantl75819ae2016-04-15 15:57:41 +000016!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "", isOptimized: false, emissionKind: FullDebug)
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000017!1 = !DIFile(filename: "test.c", directory: "/home/user/clang-llvm/build")
Sergey Dmitrouk842a51b2015-04-28 14:05:47 +000018!2 = !{}
Adrian Prantl75819ae2016-04-15 15:57:41 +000019!4 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 2, type: !5, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: false, unit: !0, variables: !2)
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000020!5 = !DISubroutineType(types: !6)
Sergey Dmitrouk842a51b2015-04-28 14:05:47 +000021!6 = !{!7}
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000022!7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
Sergey Dmitrouk842a51b2015-04-28 14:05:47 +000023!8 = !{i32 2, !"Dwarf Version", i32 4}
24!9 = !{i32 2, !"Debug Info Version", i32 3}
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000025!10 = !DILocation(line: 4, column: 5, scope: !4)