brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · a92477a Raw
60 lines · plain
1; RUN: llc < %s - -filetype=obj | llvm-dwarfdump -debug-loc - | FileCheck %s2target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32"3target triple = "thumbv7-apple-macosx10.6.7"4 5; The S registers on ARM are expressed as pieces of their super-registers in DWARF.6;7; CHECK: DW_OP_regx8 9define void @_Z3foov() optsize ssp !dbg !1 {10entry:11  %call = tail call float @_Z3barv() optsize, !dbg !1112  tail call void @llvm.dbg.value(metadata float %call, metadata !5, metadata !DIExpression()), !dbg !1113  %call16 = tail call float @_Z2f2v() optsize, !dbg !1214  %cmp7 = fcmp olt float %call, %call16, !dbg !1215  br i1 %cmp7, label %for.body, label %for.end, !dbg !1216 17for.body:                                         ; preds = %entry, %for.body18  %k.08 = phi float [ %inc, %for.body ], [ %call, %entry ]19  %call4 = tail call float @_Z2f3f(float %k.08) optsize, !dbg !1320  %inc = fadd float %k.08, 1.000000e+00, !dbg !1421  %call1 = tail call float @_Z2f2v() optsize, !dbg !1222  %cmp = fcmp olt float %inc, %call1, !dbg !1223  br i1 %cmp, label %for.body, label %for.end, !dbg !1224 25for.end:                                          ; preds = %for.body, %entry26  ret void, !dbg !1527}28 29declare float @_Z3barv() optsize30 31declare float @_Z2f2v() optsize32 33declare float @_Z2f3f(float) optsize34 35declare void @llvm.dbg.value(metadata, metadata, metadata) nounwind readnone36 37!llvm.dbg.cu = !{!0}38!llvm.module.flags = !{!20}39 40!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.0 (trunk 130845)", isOptimized: true, emissionKind: FullDebug, file: !18, enums: !19, retainedTypes: !19, imports:  null)41!1 = distinct !DISubprogram(name: "foo", linkageName: "_Z3foov", line: 5, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, unit: !0, scopeLine: 5, file: !18, scope: !2, type: !3, retainedNodes: !17)42!2 = !DIFile(filename: "k.cc", directory: "/private/tmp")43!3 = !DISubroutineType(types: !4)44!4 = !{null}45!5 = !DILocalVariable(name: "k", line: 6, scope: !6, file: !2, type: !7)46!6 = distinct !DILexicalBlock(line: 5, column: 12, file: !18, scope: !1)47!7 = !DIBasicType(tag: DW_TAG_base_type, name: "float", size: 32, align: 32, encoding: DW_ATE_float)48!8 = !DILocalVariable(name: "y", line: 8, scope: !9, file: !2, type: !7)49!9 = distinct !DILexicalBlock(line: 7, column: 25, file: !18, scope: !10)50!10 = distinct !DILexicalBlock(line: 7, column: 3, file: !18, scope: !6)51!11 = !DILocation(line: 6, column: 18, scope: !6)52!12 = !DILocation(line: 7, column: 3, scope: !6)53!13 = !DILocation(line: 8, column: 20, scope: !9)54!14 = !DILocation(line: 7, column: 20, scope: !10)55!15 = !DILocation(line: 10, column: 1, scope: !6)56!17 = !{!5, !8}57!18 = !DIFile(filename: "k.cc", directory: "/private/tmp")58!19 = !{}59!20 = !{i32 1, !"Debug Info Version", i32 3}60