Matthias Braun | f89b7c7 | 2015-09-18 17:57:28 +0000 | [diff] [blame^] | 1 | ; RUN: llc -debug -dag-dump-verbose < %s 2>&1 | FileCheck %s |
Sergey Dmitrouk | 842a51b | 2015-04-28 14:05:47 +0000 | [diff] [blame] | 2 | ; REQUIRES: asserts |
| 3 | |
Matthias Braun | 0b7d6c1 | 2015-09-18 17:41:00 +0000 | [diff] [blame] | 4 | ; CHECK: t{{[0-9]+}}: i32 = Constant<-1>test.c:4:5 |
Sergey Dmitrouk | 842a51b | 2015-04-28 14:05:47 +0000 | [diff] [blame] | 5 | |
| 6 | define i32 @main() { |
| 7 | entry: |
| 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 | |
Duncan P. N. Exon Smith | 55ca964 | 2015-08-03 17:26:41 +0000 | [diff] [blame] | 16 | !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "", isOptimized: false, subprograms: !3) |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 17 | !1 = !DIFile(filename: "test.c", directory: "/home/user/clang-llvm/build") |
Sergey Dmitrouk | 842a51b | 2015-04-28 14:05:47 +0000 | [diff] [blame] | 18 | !2 = !{} |
| 19 | !3 = !{!4} |
Duncan P. N. Exon Smith | 814b8e9 | 2015-08-28 20:26:49 +0000 | [diff] [blame] | 20 | !4 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 2, type: !5, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: false, function: i32 ()* @main, variables: !2) |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 21 | !5 = !DISubroutineType(types: !6) |
Sergey Dmitrouk | 842a51b | 2015-04-28 14:05:47 +0000 | [diff] [blame] | 22 | !6 = !{!7} |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 23 | !7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) |
Sergey Dmitrouk | 842a51b | 2015-04-28 14:05:47 +0000 | [diff] [blame] | 24 | !8 = !{i32 2, !"Dwarf Version", i32 4} |
| 25 | !9 = !{i32 2, !"Debug Info Version", i32 3} |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 26 | !10 = !DILocation(line: 4, column: 5, scope: !4) |