2013-07-24 01:26:37 +00:00
; RUN: llc < %s
2010-04-15 20:28:39 +00:00
; PR6847
target 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"
target triple = "armv4t-apple-darwin10"
2010-06-17 15:18:27 +00:00
define hidden i32 @__addvsi3 ( i32 %a , i32 %b ) nounwind {
2010-04-15 20:28:39 +00:00
entry:
tail call void @llvm.dbg.value ( metadata ! { i32 %b } , i64 0 , metadata !0 )
%0 = add nsw i32 %b , %a , !dbg !9 ; <i32> [#uses=1]
ret i32 %0 , !dbg !11
}
declare void @llvm.dbg.value ( metadata , i64 , metadata ) nounwind readnone
2013-07-27 01:26:08 +00:00
!llvm.dbg.cu = ! { !3 }
2013-08-02 00:49:44 +00:00
!0 = metadata ! { i32 524545 , metadata !1 , metadata !"b" , metadata !2 , i32 93 , metadata !6 } ; [ DW_TAG_arg_variable ]
2013-07-24 17:10:09 +00:00
!1 = metadata ! { i32 524334 , metadata !12 , null , metadata !"__addvsi3" , metadata !"__addvsi3" , metadata !"__addvsi3" , i32 94 , metadata !4 , i1 false , i1 true , i32 0 , i32 0 , null , i32 0 , i32 0 , null , null , null , null , i32 0 } ; [ DW_TAG_subprogram ]
2013-07-24 01:26:37 +00:00
!2 = metadata ! { i32 524329 , metadata !12 } ; [ DW_TAG_file_type ]
!12 = metadata ! { metadata !"libgcc2.c" , metadata !"/Users/bwilson/local/nightly/test-2010-04-14/build/llvmgcc.roots/llvmgcc~obj/src/gcc" }
2013-08-02 00:49:44 +00:00
!3 = metadata ! { i32 524305 , metadata !12 , i32 1 , metadata !"4.2.1 (Based on Apple Inc. build 5658) (LLVM build 00)" , i1 true , metadata !"" , i32 0 , metadata !13 , metadata !13 , null , null , null , metadata !"" } ; [ DW_TAG_compile_unit ]
2013-07-25 19:33:30 +00:00
!4 = metadata ! { i32 524309 , metadata !12 , metadata !2 , metadata !"" , i32 0 , i64 0 , i64 0 , i64 0 , i32 0 , null , metadata !5 , i32 0 , null } ; [ DW_TAG_subroutine_type ]
2010-04-15 20:28:39 +00:00
!5 = metadata ! { metadata !6 , metadata !6 , metadata !6 }
2013-07-24 01:26:37 +00:00
!6 = metadata ! { i32 524310 , metadata !12 , null , metadata !"SItype" , i32 152 , i64 0 , i64 0 , i64 0 , i32 0 , metadata !8 } ; [ DW_TAG_typedef ]
2010-04-15 20:28:39 +00:00
!7 = metadata ! { i32 524329 , metadata !"libgcc2.h" , metadata !"/Users/bwilson/local/nightly/test-2010-04-14/build/llvmgcc.roots/llvmgcc~obj/src/gcc" , metadata !3 } ; [ DW_TAG_file_type ]
2013-07-25 19:33:30 +00:00
!8 = metadata ! { i32 524324 , metadata !12 , metadata !2 , metadata !"int" , i32 0 , i64 32 , i64 32 , i64 0 , i32 0 , i32 5 } ; [ DW_TAG_base_type ]
2010-04-15 20:28:39 +00:00
!9 = metadata ! { i32 95 , i32 0 , metadata !10 , null }
2013-08-02 00:49:44 +00:00
!10 = metadata ! { i32 524299 , metadata !1 , i32 94 , i32 0 } ; [ DW_TAG_lexical_block ]
2010-04-15 20:28:39 +00:00
!11 = metadata ! { i32 100 , i32 0 , metadata !10 , null }
2013-07-27 01:26:08 +00:00
!13 = metadata ! { i32 0 }