1; RUN: llc < %s 2; PR6847 3target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:64-n32" 4target triple = "armv4t-apple-darwin10" 5 6define hidden i32 @__addvsi3(i32 %a, i32 %b) nounwind { 7entry: 8 tail call void @llvm.dbg.value(metadata i32 %b, i64 0, metadata !0, metadata !{!"0x102"}) 9 %0 = add nsw i32 %b, %a, !dbg !9 ; <i32> [#uses=1] 10 ret i32 %0, !dbg !11 11} 12 13declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone 14 15!llvm.dbg.cu = !{!3} 16!llvm.module.flags = !{!15} 17!0 = !{!"0x101\00b\0093\000", !1, !2, !6} ; [ DW_TAG_arg_variable ] 18!1 = !{!"0x2e\00__addvsi3\00__addvsi3\00__addvsi3\0094\000\001\000\006\000\000\000", !12, null, !4, null, null, null, null, null} ; [ DW_TAG_subprogram ] 19!2 = !{!"0x29", !12} ; [ DW_TAG_file_type ] 20!12 = !{!"libgcc2.c", !"/Users/bwilson/local/nightly/test-2010-04-14/build/llvmgcc.roots/llvmgcc~obj/src/gcc"} 21!3 = !{!"0x11\001\004.2.1 (Based on Apple Inc. build 5658) (LLVM build 00)\001\00\000\00\000", !12, !13, !13, !14, null, null} ; [ DW_TAG_compile_unit ] 22!4 = !{!"0x15\00\000\000\000\000\000\000", !12, !2, null, !5, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] 23!5 = !{!6, !6, !6} 24!6 = !{!"0x16\00SItype\00152\000\000\000\000", !12, null, !8} ; [ DW_TAG_typedef ] 25!7 = !{!"0x29", !"libgcc2.h", !"/Users/bwilson/local/nightly/test-2010-04-14/build/llvmgcc.roots/llvmgcc~obj/src/gcc", !3} ; [ DW_TAG_file_type ] 26!8 = !{!"0x24\00int\000\0032\0032\000\000\005", !12, !2} ; [ DW_TAG_base_type ] 27!9 = !MDLocation(line: 95, scope: !10) 28!10 = !{!"0xb\0094\000\000", !12, !1} ; [ DW_TAG_lexical_block ] 29!11 = !MDLocation(line: 100, scope: !10) 30!13 = !{i32 0} 31!14 = !{!1} 32!15 = !{i32 1, !"Debug Info Version", i32 2} 33