2013-02-11 16:28:12 +00:00
|
|
|
; RUN: llc -mtriple=aarch64-non-linux-gnu < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s
|
|
|
|
|
|
|
|
; We're mostly checking that relocations are applied correctly
|
|
|
|
; here. Currently R_AARCH64_ABS32 is used for references to debug data
|
|
|
|
; and R_AARCH64_ABS64 is used for program addresses.
|
|
|
|
|
|
|
|
; A couple of ABS32s, both at 0 and elsewhere, interpreted correctly:
|
|
|
|
|
|
|
|
; CHECK: DW_AT_producer [DW_FORM_strp] ( .debug_str[0x00000000] = "clang version 3.3 ")
|
|
|
|
; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000013] = "tmp.c")
|
|
|
|
|
|
|
|
; A couple of ABS64s similarly:
|
|
|
|
|
|
|
|
; CHECK: DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000)
|
2014-03-07 01:30:55 +00:00
|
|
|
; CHECK: DW_AT_high_pc [DW_FORM_data4] (0x00000008)
|
2013-02-11 16:28:12 +00:00
|
|
|
|
|
|
|
define i32 @main() nounwind {
|
|
|
|
ret i32 0, !dbg !8
|
|
|
|
}
|
|
|
|
|
|
|
|
attributes #0 = { nounwind }
|
|
|
|
|
|
|
|
!llvm.dbg.cu = !{!0}
|
2013-11-22 21:49:45 +00:00
|
|
|
!llvm.module.flags = !{!10}
|
2013-02-11 16:28:12 +00:00
|
|
|
|
2013-04-22 06:12:31 +00:00
|
|
|
!0 = metadata !{i32 786449, metadata !9, i32 12, metadata !"clang version 3.3 ", i1 false, metadata !"", i32 0, metadata !1, metadata !1, metadata !2, metadata !1, metadata !1, metadata !""} ; [ DW_TAG_compile_unit ] [/home/timnor01/llvm/build/tmp.c] [DW_LANG_C99]
|
2014-02-04 01:23:52 +00:00
|
|
|
!1 = metadata !{}
|
2013-02-11 16:28:12 +00:00
|
|
|
!2 = metadata !{metadata !3}
|
2013-07-25 06:43:01 +00:00
|
|
|
!3 = metadata !{i32 786478, metadata !9, metadata !4, metadata !"main", metadata !"main", metadata !"", i32 1, metadata !5, i1 false, i1 true, i32 0, i32 0, null, i32 0, i1 false, i32 ()* @main, null, null, metadata !1, i32 1} ; [ DW_TAG_subprogram ] [line 1] [def] [main]
|
2013-03-28 02:44:59 +00:00
|
|
|
!4 = metadata !{i32 786473, metadata !9} ; [ DW_TAG_file_type ]
|
2013-09-06 21:03:58 +00:00
|
|
|
!5 = metadata !{i32 786453, null, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !6, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
|
2013-02-11 16:28:12 +00:00
|
|
|
!6 = metadata !{metadata !7}
|
2013-07-25 06:43:01 +00:00
|
|
|
!7 = metadata !{i32 786468, null, null, metadata !"int", i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed]
|
2013-02-11 16:28:12 +00:00
|
|
|
!8 = metadata !{i32 2, i32 0, metadata !3, null}
|
2013-03-17 21:13:55 +00:00
|
|
|
!9 = metadata !{metadata !"tmp.c", metadata !"/home/tim/llvm/build"}
|
2013-11-22 21:49:45 +00:00
|
|
|
!10 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
|