Sergey Dmitrouk | 842a51b | 2015-04-28 14:05:47 +0000 | [diff] [blame] | 1 | ; RUN: llc -filetype=asm %s -o - | FileCheck %s |
| 2 | |
| 3 | target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" |
| 4 | target triple = "armv7--linux-gnueabihf" |
| 5 | |
| 6 | ; int |
| 7 | ; main(void) |
| 8 | ; { |
| 9 | ; return -1; |
| 10 | ; } |
| 11 | |
| 12 | ; CHECK: test.c:4:5 |
| 13 | ; CHECK: mvn |
| 14 | |
| 15 | ; Function Attrs: nounwind |
Peter Collingbourne | d4bff30 | 2015-11-05 22:03:56 +0000 | [diff] [blame] | 16 | define i32 @main() !dbg !4 { |
Sergey Dmitrouk | 842a51b | 2015-04-28 14:05:47 +0000 | [diff] [blame] | 17 | entry: |
| 18 | %retval = alloca i32, align 4 |
| 19 | store i32 0, i32* %retval |
| 20 | ret i32 -1, !dbg !11 |
| 21 | } |
| 22 | |
| 23 | !llvm.dbg.cu = !{!0} |
| 24 | !llvm.module.flags = !{!8, !9} |
| 25 | |
Adrian Prantl | 75819ae | 2016-04-15 15:57:41 +0000 | [diff] [blame] | 26 | !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "", isOptimized: false, emissionKind: FullDebug) |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 27 | !1 = !DIFile(filename: "test.c", directory: "/home/user/clang/build") |
Sergey Dmitrouk | 842a51b | 2015-04-28 14:05:47 +0000 | [diff] [blame] | 28 | !2 = !{} |
Adrian Prantl | 75819ae | 2016-04-15 15:57:41 +0000 | [diff] [blame] | 29 | !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 Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 30 | !5 = !DISubroutineType(types: !6) |
Sergey Dmitrouk | 842a51b | 2015-04-28 14:05:47 +0000 | [diff] [blame] | 31 | !6 = !{!7} |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 32 | !7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) |
Sergey Dmitrouk | 842a51b | 2015-04-28 14:05:47 +0000 | [diff] [blame] | 33 | !8 = !{i32 2, !"Dwarf Version", i32 4} |
| 34 | !9 = !{i32 2, !"Debug Info Version", i32 3} |
| 35 | !10 = !{i32 1, !"wchar_size", i32 4} |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 36 | !11 = !DILocation(line: 4, column: 5, scope: !4) |