brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · d50c025 Raw
64 lines · plain
1; RUN: llc -O2 -mtriple=bpfel %s -o %t -filetype=obj2; RUN: llvm-dwarfdump -debug-line %t | FileCheck %s3; RUN: llc -O2 -mtriple=bpfeb %s -o %t -filetype=obj4; RUN: llvm-dwarfdump -debug-line %t | FileCheck %s5 6source_filename = "testprog.c"7target datalayout = "e-m:e-p:64:64-i64:64-n32:64-S128"8target triple = "bpf"9 10@testprog.myvar_c = internal unnamed_addr global i32 0, align 4, !dbg !011 12; Function Attrs: nounwind13define i32 @testprog(i32, i32) local_unnamed_addr !dbg !2 {14  tail call void @llvm.dbg.value(metadata i32 %0, i64 0, metadata !11, metadata !16), !dbg !1715  tail call void @llvm.dbg.value(metadata i32 %1, i64 0, metadata !12, metadata !16), !dbg !1816  %3 = load i32, ptr @testprog.myvar_c, align 4, !dbg !19, !tbaa !2017  %4 = add i32 %1, %0, !dbg !2418  %5 = add i32 %4, %3, !dbg !2519  store i32 %5, ptr @testprog.myvar_c, align 4, !dbg !26, !tbaa !2020  ret i32 %5, !dbg !2721}22 23; Function Attrs: nounwind readnone24declare void @llvm.dbg.value(metadata, i64, metadata, metadata)25 26!llvm.dbg.cu = !{!7}27!llvm.module.flags = !{!13, !14}28!llvm.ident = !{!15}29 30!0 = distinct !DIGlobalVariableExpression(var: !1, expr: !DIExpression())31!1 = !DIGlobalVariable(name: "myvar_c", scope: !2, file: !3, line: 3, type: !6, isLocal: true, isDefinition: true)32!2 = distinct !DISubprogram(name: "testprog", scope: !3, file: !3, line: 1, type: !4, isLocal: false, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: true, unit: !7, retainedNodes: !10)33!3 = !DIFile(filename: "testprog.c", directory: "/w/llvm/bld")34!4 = !DISubroutineType(types: !5)35!5 = !{!6, !6, !6}36!6 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)37!7 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 4.0.0 (trunk 287518) (llvm/trunk 287520)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !8, globals: !9)38!8 = !{}39!9 = !{!0}40!10 = !{!11, !12}41!11 = !DILocalVariable(name: "myvar_a", arg: 1, scope: !2, file: !3, line: 1, type: !6)42!12 = !DILocalVariable(name: "myvar_b", arg: 2, scope: !2, file: !3, line: 1, type: !6)43!13 = !{i32 2, !"Dwarf Version", i32 4}44!14 = !{i32 2, !"Debug Info Version", i32 3}45!15 = !{!"clang version 4.0.0 (trunk 287518) (llvm/trunk 287520)"}46!16 = !DIExpression()47!17 = !DILocation(line: 1, column: 18, scope: !2)48!18 = !DILocation(line: 1, column: 31, scope: !2)49!19 = !DILocation(line: 5, column: 19, scope: !2)50!20 = !{!21, !21, i64 0}51!21 = !{!"int", !22, i64 0}52!22 = !{!"omnipotent char", !23, i64 0}53!23 = !{!"Simple C/C++ TBAA"}54!24 = !DILocation(line: 5, column: 27, scope: !2)55!25 = !DILocation(line: 7, column: 27, scope: !2)56!26 = !DILocation(line: 7, column: 17, scope: !2)57!27 = !DILocation(line: 9, column: 9, scope: !2)58 59; CHECK: file_names[  1]:60; CHECK-NEXT: name: "testprog.c"61; CHECK-NEXT: dir_index: 062; CHECK: 0x0000000000000000      263; CHECK: 0x0000000000000028      764