2013-06-20 08:25:24 +08:00
; RUN: llc < %s -o %t -filetype=obj
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
; RUN: llc < %s -o %t -filetype=obj -regalloc=basic
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
2011-02-05 06:57:18 +08:00
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple = "x86_64-apple-darwin8"
2013-06-20 08:25:24 +08:00
;CHECK: DW_AT_location{{.*}}(<0x01> 55 )
2011-02-05 06:57:18 +08:00
%0 = type { i64 , i1 }
2011-02-08 02:24:18 +08:00
@__clz_tab = external constant [ 256 x i8 ]
2011-02-05 06:57:18 +08:00
define hidden i128 @__divti3 ( i128 %u , i128 %v ) nounwind readnone {
entry:
2011-02-08 02:24:18 +08:00
tail call void @llvm.dbg.value ( metadata ! { i128 %u } , i64 0 , metadata !14 ) , !dbg !15
tail call void @llvm.dbg.value ( metadata !16 , i64 0 , metadata !17 ) , !dbg !21
br i1 undef , label %bb2 , label %bb4 , !dbg !22
2011-02-05 06:57:18 +08:00
2011-02-08 02:24:18 +08:00
bb2: ; preds = %entry
br label %bb4 , !dbg !23
2011-02-05 06:57:18 +08:00
2011-02-08 02:24:18 +08:00
bb4: ; preds = %bb2, %entry
br i1 undef , label %__udivmodti4.exit , label %bb82.i , !dbg !24
2011-02-05 06:57:18 +08:00
2011-02-08 02:24:18 +08:00
bb82.i: ; preds = %bb4
unreachable
2011-02-05 06:57:18 +08:00
2011-02-08 02:24:18 +08:00
__udivmodti4.exit: ; preds = %bb4
ret i128 undef , !dbg !27
2011-02-05 06:57:18 +08:00
}
declare void @llvm.dbg.declare ( metadata , metadata ) nounwind readnone
declare void @llvm.dbg.value ( metadata , i64 , metadata ) nounwind readnone
declare %0 @llvm.uadd.with.overflow.i64 ( i64 , i64 ) nounwind readnone
2013-03-08 08:23:31 +08:00
!llvm.dbg.cu = ! { !2 }
2013-11-23 05:49:45 +08:00
!llvm.module.flags = ! { !32 }
2011-02-05 06:57:18 +08:00
2013-07-25 14:43:01 +08:00
!0 = metadata ! { i32 786478 , metadata !29 , metadata !1 , metadata !"__udivmodti4" , metadata !"__udivmodti4" , metadata !"" , i32 879 , metadata !3 , i1 true , i1 true , i32 0 , i32 0 , null , i32 256 , i1 true , null , null , null , null , i32 879 } ; [ DW_TAG_subprogram ]
2013-03-28 10:44:59 +08:00
!1 = metadata ! { i32 786473 , metadata !29 } ; [ DW_TAG_file_type ]
2013-07-27 04:04:30 +08:00
!2 = metadata ! { i32 786449 , metadata !29 , i32 1 , metadata !"4.2.1 (Based on Apple Inc. build 5658) (LLVM build)" , i1 true , metadata !"" , i32 0 , metadata !31 , metadata !31 , metadata !28 , null , null , metadata !"" } ; [ DW_TAG_compile_unit ]
2013-08-27 06:39:55 +08:00
!3 = metadata ! { i32 786453 , metadata !29 , metadata !1 , metadata !"" , i32 0 , i64 0 , i64 0 , i64 0 , i32 0 , null , metadata !4 , i32 0 , null , null , null } ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
2011-02-05 06:57:18 +08:00
!4 = metadata ! { metadata !5 , metadata !5 , metadata !5 , metadata !8 }
2013-03-28 10:44:59 +08:00
!5 = metadata ! { i32 786454 , metadata !30 , metadata !6 , metadata !"UTItype" , i32 166 , i64 0 , i64 0 , i64 0 , i32 0 , metadata !7 } ; [ DW_TAG_typedef ]
!6 = metadata ! { i32 786473 , metadata !30 } ; [ DW_TAG_file_type ]
!7 = metadata ! { i32 786468 , metadata !29 , metadata !1 , metadata !"" , i32 0 , i64 128 , i64 128 , i64 0 , i32 0 , i32 7 } ; [ DW_TAG_base_type ]
!8 = metadata ! { i32 786447 , metadata !29 , metadata !1 , metadata !"" , i32 0 , i64 64 , i64 64 , i64 0 , i32 0 , metadata !5 } ; [ DW_TAG_pointer_type ]
2013-07-25 14:43:01 +08:00
!9 = metadata ! { i32 786478 , metadata !29 , metadata !1 , metadata !"__divti3" , metadata !"__divti3" , metadata !"__divti3" , i32 1094 , metadata !10 , i1 false , i1 true , i32 0 , i32 0 , null , i32 256 , i1 true , i128 ( i128 , i128 ) * @__divti3 , null , null , null , i32 1094 } ; [ DW_TAG_subprogram ]
2013-08-27 06:39:55 +08:00
!10 = metadata ! { i32 786453 , metadata !29 , metadata !1 , metadata !"" , i32 0 , i64 0 , i64 0 , i64 0 , i32 0 , null , metadata !11 , i32 0 , null , null , null } ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
2011-02-05 06:57:18 +08:00
!11 = metadata ! { metadata !12 , metadata !12 , metadata !12 }
2013-03-28 10:44:59 +08:00
!12 = metadata ! { i32 786454 , metadata !30 , metadata !6 , metadata !"TItype" , i32 160 , i64 0 , i64 0 , i64 0 , i32 0 , metadata !13 } ; [ DW_TAG_typedef ]
!13 = metadata ! { i32 786468 , metadata !29 , metadata !1 , metadata !"" , i32 0 , i64 128 , i64 128 , i64 0 , i32 0 , i32 5 } ; [ DW_TAG_base_type ]
2013-03-08 08:23:31 +08:00
!14 = metadata ! { i32 786689 , metadata !9 , metadata !"u" , metadata !1 , i32 1093 , metadata !12 , i32 0 , null } ; [ DW_TAG_arg_variable ]
2011-02-08 02:24:18 +08:00
!15 = metadata ! { i32 1093 , i32 0 , metadata !9 , null }
!16 = metadata ! { i64 0 }
2013-03-08 08:23:31 +08:00
!17 = metadata ! { i32 786688 , metadata !18 , metadata !"c" , metadata !1 , i32 1095 , metadata !19 , i32 0 , null } ; [ DW_TAG_auto_variable ]
2013-07-25 14:43:01 +08:00
!18 = metadata ! { i32 786443 , metadata !29 , metadata !9 , i32 1094 , i32 0 , i32 13 } ; [ DW_TAG_lexical_block ]
2013-03-28 10:44:59 +08:00
!19 = metadata ! { i32 786454 , metadata !30 , metadata !6 , metadata !"word_type" , i32 424 , i64 0 , i64 0 , i64 0 , i32 0 , metadata !20 } ; [ DW_TAG_typedef ]
!20 = metadata ! { i32 786468 , metadata !29 , metadata !1 , metadata !"long int" , i32 0 , i64 64 , i64 64 , i64 0 , i32 0 , i32 5 } ; [ DW_TAG_base_type ]
2011-02-08 02:24:18 +08:00
!21 = metadata ! { i32 1095 , i32 0 , metadata !18 , null }
!22 = metadata ! { i32 1103 , i32 0 , metadata !18 , null }
!23 = metadata ! { i32 1104 , i32 0 , metadata !18 , null }
!24 = metadata ! { i32 1003 , i32 0 , metadata !25 , metadata !26 }
2013-07-25 14:43:01 +08:00
!25 = metadata ! { i32 786443 , metadata !29 , metadata !0 , i32 879 , i32 0 , i32 0 } ; [ DW_TAG_lexical_block ]
2011-02-08 02:24:18 +08:00
!26 = metadata ! { i32 1107 , i32 0 , metadata !18 , null }
!27 = metadata ! { i32 1111 , i32 0 , metadata !18 , null }
2013-03-18 05:13:55 +08:00
!28 = metadata ! { metadata !0 , metadata !9 }
!29 = metadata ! { metadata !"foobar.c" , metadata !"/tmp" }
!30 = metadata ! { metadata !"foobar.h" , metadata !"/tmp" }
2013-07-27 04:04:30 +08:00
!31 = metadata ! { i32 0 }
2013-11-23 05:49:45 +08:00
!32 = metadata ! { i32 1 , metadata !"Debug Info Version" , i32 1 }