dd84faa02a56fbdd7eb83ca072d8535aeab9d62a
[oota-llvm.git] / test / CodeGen / AArch64 / arm64-2011-03-17-AsmPrinterCrash.ll
1 ; RUN: llc < %s -mtriple=arm64-apple-darwin
2
3 ; rdar://9146594
4
5 define void @drt_vsprintf() nounwind ssp {
6 entry:
7   %do_tab_convert = alloca i32, align 4
8   br i1 undef, label %if.then24, label %if.else295, !dbg !13
9
10 if.then24:                                        ; preds = %entry
11   unreachable
12
13 if.else295:                                       ; preds = %entry
14   call void @llvm.dbg.declare(metadata i32* %do_tab_convert, metadata !16, metadata !DIExpression()), !dbg !18
15   store i32 0, i32* %do_tab_convert, align 4, !dbg !19
16   unreachable
17 }
18
19 declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone
20
21 !llvm.dbg.gv = !{!0}
22 !llvm.dbg.sp = !{!1, !7, !10, !11, !12}
23
24 !0 = !DIGlobalVariable(name: "vsplive", line: 617, isLocal: true, isDefinition: true, scope: !1, file: !2, type: !6)
25 !1 = !DISubprogram(name: "drt_vsprintf", line: 616, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, file: !20, scope: !2, type: !4)
26 !2 = !DIFile(filename: "print.i", directory: "/Volumes/Ebi/echeng/radars/r9146594")
27 !3 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.0 (http://llvm.org/git/clang.git git:/git/puzzlebox/clang.git/ c4d1aea01c4444eb81bdbf391f1be309127c3cf1)", isOptimized: true, emissionKind: 0, file: !20, enums: !21, retainedTypes: !21)
28 !4 = !DISubroutineType(types: !5)
29 !5 = !{!6}
30 !6 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
31 !7 = !DISubprogram(name: "putc_mem", line: 30, isLocal: true, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, file: !20, scope: !2, type: !8)
32 !8 = !DISubroutineType(types: !9)
33 !9 = !{null}
34 !10 = !DISubprogram(name: "print_double", line: 203, isLocal: true, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, file: !20, scope: !2, type: !4)
35 !11 = !DISubprogram(name: "print_number", line: 75, isLocal: true, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, file: !20, scope: !2, type: !4)
36 !12 = !DISubprogram(name: "get_flags", line: 508, isLocal: true, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, file: !20, scope: !2, type: !8)
37 !13 = !DILocation(line: 653, column: 5, scope: !14)
38 !14 = distinct !DILexicalBlock(line: 652, column: 35, file: !20, scope: !15)
39 !15 = distinct !DILexicalBlock(line: 616, column: 1, file: !20, scope: !1)
40 !16 = !DILocalVariable(name: "do_tab_convert", line: 853, scope: !17, file: !2, type: !6)
41 !17 = distinct !DILexicalBlock(line: 850, column: 12, file: !20, scope: !14)
42 !18 = !DILocation(line: 853, column: 11, scope: !17)
43 !19 = !DILocation(line: 853, column: 29, scope: !17)
44 !20 = !DIFile(filename: "print.i", directory: "/Volumes/Ebi/echeng/radars/r9146594")
45 !21 = !{i32 0}