1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s - -filetype=obj | llvm-dwarfdump -debug-dump=loc - | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; Radar 9376013 3*9880d681SAndroid Build Coastguard Workertarget 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" 4*9880d681SAndroid Build Coastguard Workertarget triple = "thumbv7-apple-macosx10.6.7" 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker; Just making sure the first part of the location isn't a repetition 7*9880d681SAndroid Build Coastguard Worker; of the size of the location description. 8*9880d681SAndroid Build Coastguard Worker; 9*9880d681SAndroid Build Coastguard Worker; 0x90 DW_OP_regx of super-register 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Worker; CHECK: 0x00000000: Beginning address offset: 12*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Ending address offset: 13*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Location description: 90 {{.. .. .. .. $}} 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workerdefine void @_Z3foov() optsize ssp !dbg !1 { 16*9880d681SAndroid Build Coastguard Workerentry: 17*9880d681SAndroid Build Coastguard Worker %call = tail call float @_Z3barv() optsize, !dbg !11 18*9880d681SAndroid Build Coastguard Worker tail call void @llvm.dbg.value(metadata float %call, i64 0, metadata !5, metadata !DIExpression()), !dbg !11 19*9880d681SAndroid Build Coastguard Worker %call16 = tail call float @_Z2f2v() optsize, !dbg !12 20*9880d681SAndroid Build Coastguard Worker %cmp7 = fcmp olt float %call, %call16, !dbg !12 21*9880d681SAndroid Build Coastguard Worker br i1 %cmp7, label %for.body, label %for.end, !dbg !12 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Workerfor.body: ; preds = %entry, %for.body 24*9880d681SAndroid Build Coastguard Worker %k.08 = phi float [ %inc, %for.body ], [ %call, %entry ] 25*9880d681SAndroid Build Coastguard Worker %call4 = tail call float @_Z2f3f(float %k.08) optsize, !dbg !13 26*9880d681SAndroid Build Coastguard Worker %inc = fadd float %k.08, 1.000000e+00, !dbg !14 27*9880d681SAndroid Build Coastguard Worker %call1 = tail call float @_Z2f2v() optsize, !dbg !12 28*9880d681SAndroid Build Coastguard Worker %cmp = fcmp olt float %inc, %call1, !dbg !12 29*9880d681SAndroid Build Coastguard Worker br i1 %cmp, label %for.body, label %for.end, !dbg !12 30*9880d681SAndroid Build Coastguard Worker 31*9880d681SAndroid Build Coastguard Workerfor.end: ; preds = %for.body, %entry 32*9880d681SAndroid Build Coastguard Worker ret void, !dbg !15 33*9880d681SAndroid Build Coastguard Worker} 34*9880d681SAndroid Build Coastguard Worker 35*9880d681SAndroid Build Coastguard Workerdeclare float @_Z3barv() optsize 36*9880d681SAndroid Build Coastguard Worker 37*9880d681SAndroid Build Coastguard Workerdeclare float @_Z2f2v() optsize 38*9880d681SAndroid Build Coastguard Worker 39*9880d681SAndroid Build Coastguard Workerdeclare float @_Z2f3f(float) optsize 40*9880d681SAndroid Build Coastguard Worker 41*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone 42*9880d681SAndroid Build Coastguard Worker 43*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!0} 44*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!20} 45*9880d681SAndroid Build Coastguard Worker 46*9880d681SAndroid Build Coastguard Worker!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) 47*9880d681SAndroid Build Coastguard Worker!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, variables: !17) 48*9880d681SAndroid Build Coastguard Worker!2 = !DIFile(filename: "k.cc", directory: "/private/tmp") 49*9880d681SAndroid Build Coastguard Worker!3 = !DISubroutineType(types: !4) 50*9880d681SAndroid Build Coastguard Worker!4 = !{null} 51*9880d681SAndroid Build Coastguard Worker!5 = !DILocalVariable(name: "k", line: 6, scope: !6, file: !2, type: !7) 52*9880d681SAndroid Build Coastguard Worker!6 = distinct !DILexicalBlock(line: 5, column: 12, file: !18, scope: !1) 53*9880d681SAndroid Build Coastguard Worker!7 = !DIBasicType(tag: DW_TAG_base_type, name: "float", size: 32, align: 32, encoding: DW_ATE_float) 54*9880d681SAndroid Build Coastguard Worker!8 = !DILocalVariable(name: "y", line: 8, scope: !9, file: !2, type: !7) 55*9880d681SAndroid Build Coastguard Worker!9 = distinct !DILexicalBlock(line: 7, column: 25, file: !18, scope: !10) 56*9880d681SAndroid Build Coastguard Worker!10 = distinct !DILexicalBlock(line: 7, column: 3, file: !18, scope: !6) 57*9880d681SAndroid Build Coastguard Worker!11 = !DILocation(line: 6, column: 18, scope: !6) 58*9880d681SAndroid Build Coastguard Worker!12 = !DILocation(line: 7, column: 3, scope: !6) 59*9880d681SAndroid Build Coastguard Worker!13 = !DILocation(line: 8, column: 20, scope: !9) 60*9880d681SAndroid Build Coastguard Worker!14 = !DILocation(line: 7, column: 20, scope: !10) 61*9880d681SAndroid Build Coastguard Worker!15 = !DILocation(line: 10, column: 1, scope: !6) 62*9880d681SAndroid Build Coastguard Worker!17 = !{!5, !8} 63*9880d681SAndroid Build Coastguard Worker!18 = !DIFile(filename: "k.cc", directory: "/private/tmp") 64*9880d681SAndroid Build Coastguard Worker!19 = !{} 65*9880d681SAndroid Build Coastguard Worker!20 = !{i32 1, !"Debug Info Version", i32 3} 66