[InstCombine] Signed saturation patterns
[llvm-core.git] / test / DebugInfo / Generic / inlined-strings.ll
blob817b9b971144ae7905fcece538b8d87f116c1971
1 ; REQUIRES: object-emission
3 ; RUN: %llc_dwarf -O0 -filetype=obj < %s -dwarf-inlined-strings=Enable -o - | llvm-dwarfdump -show-form - | FileCheck %s
5 ; Also test that the null streamer doesn't crash with debug info.
6 ; RUN: %llc_dwarf -O0 -filetype=null < %s -dwarf-inlined-strings=Enable
8 ; generated from the following source compiled to bitcode with clang -g -O1
9 ; static int i;
10 ; int main() {
11 ;   (void)&i;
12 ; }
14 ; CHECK-NOT: DW_FORM_str{{(p|x)}}
15 ; CHECK: DW_FORM_string
16 ; CHECK-NOT: DW_FORM_str{{(p|x)}}
19 source_filename = "test/DebugInfo/Generic/global.ll"
21 ; Function Attrs: nounwind readnone uwtable
22 define i32 @main() #0 !dbg !9 {
23 entry:
24   ret i32 0, !dbg !12
27 attributes #0 = { nounwind readnone uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
29 !llvm.dbg.cu = !{!0}
30 !llvm.module.flags = !{!7, !8}
32 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.4 ", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !3, imports: !2)
33 !1 = !DIFile(filename: "global.cpp", directory: "/tmp")
34 !2 = !{}
35 !3 = !{!4}
36 !4 = !DIGlobalVariableExpression(var: !5, expr: !DIExpression())
37 !5 = !DIGlobalVariable(name: "i", linkageName: "_ZL1i", scope: null, file: !1, line: 1, type: !6, isLocal: true, isDefinition: true)
38 !6 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
39 !7 = !{i32 2, !"Dwarf Version", i32 3}
40 !8 = !{i32 1, !"Debug Info Version", i32 3}
41 !9 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 2, type: !10, isLocal: false, isDefinition: true, scopeLine: 2, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !2)
42 !10 = !DISubroutineType(types: !11)
43 !11 = !{!6}
44 !12 = !DILocation(line: 4, scope: !9)