Saleem Abdulrasool | 729c7a0 | 2014-05-04 23:13:15 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple thumbv7--windows-itanium -filetype obj -o - %s \ |
Saleem Abdulrasool | fc6b85b | 2014-05-08 01:35:57 +0000 | [diff] [blame] | 2 | ; RUN: | llvm-readobj -r - | FileCheck %s -check-prefix CHECK-ITANIUM |
| 3 | |
Reid Kleckner | 12d2c12 | 2015-08-05 22:26:20 +0000 | [diff] [blame] | 4 | ; RUN: sed -e 's/"Dwarf Version"/"CodeView"/' %s \ |
| 5 | ; RUN: | llc -mtriple thumbv7--windows-msvc -filetype obj -o - \ |
Saleem Abdulrasool | 2ff4948 | 2014-05-08 01:41:04 +0000 | [diff] [blame] | 6 | ; RUN: | llvm-readobj -r - | FileCheck %s -check-prefix CHECK-MSVC |
Saleem Abdulrasool | 729c7a0 | 2014-05-04 23:13:15 +0000 | [diff] [blame] | 7 | |
| 8 | ; ModuleID = '/Users/compnerd/work/llvm/test/MC/ARM/reduced.c' |
| 9 | target 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" |
| 10 | target triple = "thumbv7--windows-itanium" |
| 11 | |
Peter Collingbourne | d4bff30 | 2015-11-05 22:03:56 +0000 | [diff] [blame] | 12 | define arm_aapcs_vfpcc void @function() !dbg !1 { |
Saleem Abdulrasool | 729c7a0 | 2014-05-04 23:13:15 +0000 | [diff] [blame] | 13 | entry: |
| 14 | ret void, !dbg !0 |
| 15 | } |
| 16 | |
| 17 | !llvm.dbg.cu = !{!7} |
| 18 | !llvm.module.flags = !{!9, !10} |
| 19 | |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 20 | !0 = !DILocation(line: 1, scope: !1) |
Shiva Chen | 2c86455 | 2018-05-09 02:40:45 +0000 | [diff] [blame] | 21 | !1 = distinct !DISubprogram(name: "function", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !7, scopeLine: 1, file: !2, scope: !3, type: !4, retainedNodes: !6) |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 22 | !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 Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 25 | !5 = !{null} |
| 26 | !6 = !{} |
Adrian Prantl | 75819ae | 2016-04-15 15:57:41 +0000 | [diff] [blame] | 27 | !7 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5.0", isOptimized: false, emissionKind: FullDebug, file: !2, enums: !6, retainedTypes: !6, globals: !6, imports: !6) |
Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 28 | !9 = !{i32 2, !"Dwarf Version", i32 4} |
Duncan P. N. Exon Smith | e274180 | 2015-03-03 17:24:31 +0000 | [diff] [blame] | 29 | !10 = !{i32 1, !"Debug Info Version", i32 3} |
Saleem Abdulrasool | 729c7a0 | 2014-05-04 23:13:15 +0000 | [diff] [blame] | 30 | |
Saleem Abdulrasool | fc6b85b | 2014-05-08 01:35:57 +0000 | [diff] [blame] | 31 | ; CHECK-ITANIUM: Relocations [ |
| 32 | ; CHECK-ITANIUM: Section {{.*}} .debug_info { |
| 33 | ; CHECK-ITANIUM: 0x6 IMAGE_REL_ARM_SECREL .debug_abbrev |
| 34 | ; CHECK-ITANIUM: 0xC IMAGE_REL_ARM_SECREL .debug_str |
| 35 | ; CHECK-ITANIUM: 0x12 IMAGE_REL_ARM_SECREL .debug_str |
| 36 | ; CHECK-ITANIUM: 0x16 IMAGE_REL_ARM_SECREL .debug_line |
Saleem Abdulrasool | fc6b85b | 2014-05-08 01:35:57 +0000 | [diff] [blame] | 37 | ; CHECK-ITANIUM: } |
| 38 | ; CHECK-ITANIUM: Section {{.*}}.debug_pubnames { |
| 39 | ; CHECK-ITANIUM: 0x6 IMAGE_REL_ARM_SECREL .debug_info |
| 40 | ; CHECK-ITANIUM: } |
| 41 | ; CHECK-ITANIUM: ] |
| 42 | |
| 43 | ; CHECK-MSVC: Relocations [ |
| 44 | ; CHECK-MSVC: Section {{.*}} .debug$S { |
Adrian McCarthy | 4333daa | 2016-11-02 21:30:35 +0000 | [diff] [blame] | 45 | ; CHECK-MSVC: 0x64 IMAGE_REL_ARM_SECREL function |
| 46 | ; CHECK-MSVC: 0x68 IMAGE_REL_ARM_SECTION function |
Reid Kleckner | 9ea2c01 | 2018-10-01 21:59:45 +0000 | [diff] [blame] | 47 | ; CHECK-MSVC: 0xA0 IMAGE_REL_ARM_SECREL function |
| 48 | ; CHECK-MSVC: 0xA4 IMAGE_REL_ARM_SECTION function |
Saleem Abdulrasool | fc6b85b | 2014-05-08 01:35:57 +0000 | [diff] [blame] | 49 | ; CHECK-MSVC: } |
| 50 | ; CHECK-MSVC: ] |
Saleem Abdulrasool | 729c7a0 | 2014-05-04 23:13:15 +0000 | [diff] [blame] | 51 | |