xref: /aosp_15_r20/external/llvm/test/CodeGen/AArch64/arm64-2011-03-17-AsmPrinterCrash.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=arm64-apple-darwin
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; rdar://9146594
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine void @drt_vsprintf() nounwind ssp {
6*9880d681SAndroid Build Coastguard Workerentry:
7*9880d681SAndroid Build Coastguard Worker  %do_tab_convert = alloca i32, align 4
8*9880d681SAndroid Build Coastguard Worker  br i1 undef, label %if.then24, label %if.else295, !dbg !13
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workerif.then24:                                        ; preds = %entry
11*9880d681SAndroid Build Coastguard Worker  unreachable
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Workerif.else295:                                       ; preds = %entry
14*9880d681SAndroid Build Coastguard Worker  call void @llvm.dbg.declare(metadata i32* %do_tab_convert, metadata !16, metadata !DIExpression()), !dbg !18
15*9880d681SAndroid Build Coastguard Worker  store i32 0, i32* %do_tab_convert, align 4, !dbg !19
16*9880d681SAndroid Build Coastguard Worker  unreachable
17*9880d681SAndroid Build Coastguard Worker}
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!0}
22*9880d681SAndroid Build Coastguard Worker
23*9880d681SAndroid Build Coastguard Worker!0 = !DIGlobalVariable(name: "vsplive", line: 617, isLocal: true, isDefinition: true, scope: !1, file: !2, type: !6)
24*9880d681SAndroid Build Coastguard Worker!1 = distinct !DISubprogram(name: "drt_vsprintf", line: 616, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !3, file: !20, scope: !2, type: !4)
25*9880d681SAndroid Build Coastguard Worker!2 = !DIFile(filename: "print.i", directory: "/Volumes/Ebi/echeng/radars/r9146594")
26*9880d681SAndroid Build Coastguard Worker!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: FullDebug, file: !20, enums: !21, retainedTypes: !21, globals: !{!0})
27*9880d681SAndroid Build Coastguard Worker!4 = !DISubroutineType(types: !5)
28*9880d681SAndroid Build Coastguard Worker!5 = !{!6}
29*9880d681SAndroid Build Coastguard Worker!6 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
30*9880d681SAndroid Build Coastguard Worker!7 = distinct !DISubprogram(name: "putc_mem", line: 30, isLocal: true, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !3, file: !20, scope: !2, type: !8)
31*9880d681SAndroid Build Coastguard Worker!8 = !DISubroutineType(types: !9)
32*9880d681SAndroid Build Coastguard Worker!9 = !{null}
33*9880d681SAndroid Build Coastguard Worker!10 = distinct !DISubprogram(name: "print_double", line: 203, isLocal: true, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !3, file: !20, scope: !2, type: !4)
34*9880d681SAndroid Build Coastguard Worker!11 = distinct !DISubprogram(name: "print_number", line: 75, isLocal: true, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !3, file: !20, scope: !2, type: !4)
35*9880d681SAndroid Build Coastguard Worker!12 = distinct !DISubprogram(name: "get_flags", line: 508, isLocal: true, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !3, file: !20, scope: !2, type: !8)
36*9880d681SAndroid Build Coastguard Worker!13 = !DILocation(line: 653, column: 5, scope: !14)
37*9880d681SAndroid Build Coastguard Worker!14 = distinct !DILexicalBlock(line: 652, column: 35, file: !20, scope: !15)
38*9880d681SAndroid Build Coastguard Worker!15 = distinct !DILexicalBlock(line: 616, column: 1, file: !20, scope: !1)
39*9880d681SAndroid Build Coastguard Worker!16 = !DILocalVariable(name: "do_tab_convert", line: 853, scope: !17, file: !2, type: !6)
40*9880d681SAndroid Build Coastguard Worker!17 = distinct !DILexicalBlock(line: 850, column: 12, file: !20, scope: !14)
41*9880d681SAndroid Build Coastguard Worker!18 = !DILocation(line: 853, column: 11, scope: !17)
42*9880d681SAndroid Build Coastguard Worker!19 = !DILocation(line: 853, column: 29, scope: !17)
43*9880d681SAndroid Build Coastguard Worker!20 = !DIFile(filename: "print.i", directory: "/Volumes/Ebi/echeng/radars/r9146594")
44*9880d681SAndroid Build Coastguard Worker!21 = !{i32 0}
45