blob: a950ba2b6896037b9977d9d19ccd887f2d0c6aad [file] [log] [blame]
Saleem Abdulrasool729c7a02014-05-04 23:13:15 +00001; RUN: llc -mtriple thumbv7--windows-itanium -filetype obj -o - %s \
Saleem Abdulrasoolfc6b85b2014-05-08 01:35:57 +00002; RUN: | llvm-readobj -r - | FileCheck %s -check-prefix CHECK-ITANIUM
3
Reid Kleckner12d2c122015-08-05 22:26:20 +00004; RUN: sed -e 's/"Dwarf Version"/"CodeView"/' %s \
5; RUN: | llc -mtriple thumbv7--windows-msvc -filetype obj -o - \
Saleem Abdulrasool2ff49482014-05-08 01:41:04 +00006; RUN: | llvm-readobj -r - | FileCheck %s -check-prefix CHECK-MSVC
Saleem Abdulrasool729c7a02014-05-04 23:13:15 +00007
8; ModuleID = '/Users/compnerd/work/llvm/test/MC/ARM/reduced.c'
9target datalayout = "e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i64:64-v128:64:128-a:0:32-n32-S64"
10target triple = "thumbv7--windows-itanium"
11
Peter Collingbourned4bff302015-11-05 22:03:56 +000012define arm_aapcs_vfpcc void @function() !dbg !1 {
Saleem Abdulrasool729c7a02014-05-04 23:13:15 +000013entry:
14 ret void, !dbg !0
15}
16
17!llvm.dbg.cu = !{!7}
18!llvm.module.flags = !{!9, !10}
19
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000020!0 = !DILocation(line: 1, scope: !1)
Peter Collingbourned4bff302015-11-05 22:03:56 +000021!1 = distinct !DISubprogram(name: "function", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, scopeLine: 1, file: !2, scope: !3, type: !4, variables: !6)
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000022!2 = !DIFile(filename: "/Users/compnerd/work/llvm/test/MC/ARM/reduced.c", directory: "/Users/compnerd/work/llvm")
23!3 = !DIFile(filename: "/Users/compnerd/work/llvm/test/MC/ARM/reduced.c", directory: "/Users/compnerd/work/llvm")
24!4 = !DISubroutineType(types: !5)
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000025!5 = !{null}
26!6 = !{}
Duncan P. N. Exon Smith55ca9642015-08-03 17:26:41 +000027!7 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5.0", isOptimized: false, emissionKind: 1, file: !2, enums: !6, retainedTypes: !6, subprograms: !8, globals: !6, imports: !6)
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000028!8 = !{!1}
29!9 = !{i32 2, !"Dwarf Version", i32 4}
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +000030!10 = !{i32 1, !"Debug Info Version", i32 3}
Saleem Abdulrasool729c7a02014-05-04 23:13:15 +000031
Saleem Abdulrasoolfc6b85b2014-05-08 01:35:57 +000032; CHECK-ITANIUM: Relocations [
33; CHECK-ITANIUM: Section {{.*}} .debug_info {
34; CHECK-ITANIUM: 0x6 IMAGE_REL_ARM_SECREL .debug_abbrev
35; CHECK-ITANIUM: 0xC IMAGE_REL_ARM_SECREL .debug_str
36; CHECK-ITANIUM: 0x12 IMAGE_REL_ARM_SECREL .debug_str
37; CHECK-ITANIUM: 0x16 IMAGE_REL_ARM_SECREL .debug_line
Saleem Abdulrasoolfc6b85b2014-05-08 01:35:57 +000038; CHECK-ITANIUM: }
39; CHECK-ITANIUM: Section {{.*}}.debug_pubnames {
40; CHECK-ITANIUM: 0x6 IMAGE_REL_ARM_SECREL .debug_info
41; CHECK-ITANIUM: }
42; CHECK-ITANIUM: ]
43
44; CHECK-MSVC: Relocations [
45; CHECK-MSVC: Section {{.*}} .debug$S {
Timur Iskhodzhanovb3205272014-10-24 06:24:07 +000046; CHECK-MSVC: 0x2C IMAGE_REL_ARM_SECREL function
47; CHECK-MSVC: 0x30 IMAGE_REL_ARM_SECTION function
48; CHECK-MSVC: 0x48 IMAGE_REL_ARM_SECREL function
49; CHECK-MSVC: 0x4C IMAGE_REL_ARM_SECTION function
Saleem Abdulrasoolfc6b85b2014-05-08 01:35:57 +000050; CHECK-MSVC: }
51; CHECK-MSVC: ]
Saleem Abdulrasool729c7a02014-05-04 23:13:15 +000052