mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-23 12:45:47 +00:00
Add some tests for RelocVisitor.
Patch by Charlie Turner. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219107 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e6f32be8df
commit
b23e9d77e8
15
test/DebugInfo/AArch64/processes-relocations.ll
Normal file
15
test/DebugInfo/AArch64/processes-relocations.ll
Normal file
@ -0,0 +1,15 @@
|
||||
; RUN: llc -filetype=obj -O0 < %s -mtriple aarch64-unknown-linux | \
|
||||
; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
|
||||
|
||||
; CHECK-NOT: failed to compute relocation
|
||||
|
||||
!llvm.dbg.cu = !{!0}
|
||||
!llvm.module.flags = !{!3, !4}
|
||||
!llvm.ident = !{!5}
|
||||
|
||||
!0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.6.0 ", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !2, metadata !2, metadata !2, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99]
|
||||
!1 = metadata !{metadata !"empty.c", metadata !"/a"}
|
||||
!2 = metadata !{}
|
||||
!3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
|
||||
!4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
|
||||
!5 = metadata !{metadata !"clang version 3.6.0 "}
|
15
test/DebugInfo/ARM/processes-relocations.ll
Normal file
15
test/DebugInfo/ARM/processes-relocations.ll
Normal file
@ -0,0 +1,15 @@
|
||||
; RUN: llc -filetype=obj -O0 < %s -mtriple arm-unknown-linux | \
|
||||
; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
|
||||
|
||||
; CHECK-NOT: failed to compute relocation
|
||||
|
||||
!llvm.dbg.cu = !{!0}
|
||||
!llvm.module.flags = !{!3, !4}
|
||||
!llvm.ident = !{!5}
|
||||
|
||||
!0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.6.0 ", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !2, metadata !2, metadata !2, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99]
|
||||
!1 = metadata !{metadata !"empty.c", metadata !"/a"}
|
||||
!2 = metadata !{}
|
||||
!3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
|
||||
!4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
|
||||
!5 = metadata !{metadata !"clang version 3.6.0 "}
|
17
test/DebugInfo/Mips/processes-relocations.ll
Normal file
17
test/DebugInfo/Mips/processes-relocations.ll
Normal file
@ -0,0 +1,17 @@
|
||||
; RUN: llc -filetype=obj -O0 < %s -mtriple mips-unknown-linux | \
|
||||
; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
|
||||
; RUN: llc -filetype=obj -O0 < %s -mtriple mips64-unknown-linux | \
|
||||
; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
|
||||
|
||||
; CHECK-NOT: failed to compute relocation
|
||||
|
||||
!llvm.dbg.cu = !{!0}
|
||||
!llvm.module.flags = !{!3, !4}
|
||||
!llvm.ident = !{!5}
|
||||
|
||||
!0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.6.0 ", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !2, metadata !2, metadata !2, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99]
|
||||
!1 = metadata !{metadata !"empty.c", metadata !"/a"}
|
||||
!2 = metadata !{}
|
||||
!3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
|
||||
!4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
|
||||
!5 = metadata !{metadata !"clang version 3.6.0 "}
|
17
test/DebugInfo/PowerPC/processes-relocations.ll
Normal file
17
test/DebugInfo/PowerPC/processes-relocations.ll
Normal file
@ -0,0 +1,17 @@
|
||||
; RUN: llc -filetype=obj -O0 < %s -mtriple powerpc64-unknown-linux | \
|
||||
; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
|
||||
; RUN: llc -filetype=obj -O0 < %s -mtriple powerpc-unknown-linux | \
|
||||
; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
|
||||
|
||||
; CHECK-NOT: failed to compute relocation
|
||||
|
||||
!llvm.dbg.cu = !{!0}
|
||||
!llvm.module.flags = !{!3, !4}
|
||||
!llvm.ident = !{!5}
|
||||
|
||||
!0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.6.0 ", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !2, metadata !2, metadata !2, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99]
|
||||
!1 = metadata !{metadata !"empty.c", metadata !"/a"}
|
||||
!2 = metadata !{}
|
||||
!3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
|
||||
!4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
|
||||
!5 = metadata !{metadata !"clang version 3.6.0 "}
|
17
test/DebugInfo/Sparc/processes-relocations.ll
Normal file
17
test/DebugInfo/Sparc/processes-relocations.ll
Normal file
@ -0,0 +1,17 @@
|
||||
; RUN: llc -filetype=obj -O0 < %s -mtriple sparc-unknown-linux | \
|
||||
; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
|
||||
; RUN: llc -filetype=obj -O0 < %s -mtriple sparcv9-unknown-linux | \
|
||||
; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
|
||||
|
||||
; CHECK-NOT: failed to compute relocation
|
||||
|
||||
!llvm.dbg.cu = !{!0}
|
||||
!llvm.module.flags = !{!3, !4}
|
||||
!llvm.ident = !{!5}
|
||||
|
||||
!0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.6.0 ", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !2, metadata !2, metadata !2, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99]
|
||||
!1 = metadata !{metadata !"empty.c", metadata !"/a"}
|
||||
!2 = metadata !{}
|
||||
!3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
|
||||
!4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
|
||||
!5 = metadata !{metadata !"clang version 3.6.0 "}
|
15
test/DebugInfo/SystemZ/processes-relocations.ll
Normal file
15
test/DebugInfo/SystemZ/processes-relocations.ll
Normal file
@ -0,0 +1,15 @@
|
||||
; RUN: llc -filetype=obj -O0 < %s -mtriple s390x-unknown-linux | \
|
||||
; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
|
||||
|
||||
; CHECK-NOT: failed to compute relocation
|
||||
|
||||
!llvm.dbg.cu = !{!0}
|
||||
!llvm.module.flags = !{!3, !4}
|
||||
!llvm.ident = !{!5}
|
||||
|
||||
!0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.6.0 ", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !2, metadata !2, metadata !2, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99]
|
||||
!1 = metadata !{metadata !"empty.c", metadata !"/a"}
|
||||
!2 = metadata !{}
|
||||
!3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
|
||||
!4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
|
||||
!5 = metadata !{metadata !"clang version 3.6.0 "}
|
17
test/DebugInfo/X86/processes-relocations.ll
Normal file
17
test/DebugInfo/X86/processes-relocations.ll
Normal file
@ -0,0 +1,17 @@
|
||||
; RUN: llc -filetype=obj -O0 < %s -mtriple x86_64-none-linux | \
|
||||
; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
|
||||
; RUN: llc -filetype=obj -O0 < %s -mtriple i386-none-linux | \
|
||||
; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
|
||||
|
||||
; CHECK-NOT: failed to compute relocation
|
||||
|
||||
!llvm.dbg.cu = !{!0}
|
||||
!llvm.module.flags = !{!3, !4}
|
||||
!llvm.ident = !{!5}
|
||||
|
||||
!0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.6.0 ", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !2, metadata !2, metadata !2, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99]
|
||||
!1 = metadata !{metadata !"empty.c", metadata !"/a"}
|
||||
!2 = metadata !{}
|
||||
!3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
|
||||
!4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
|
||||
!5 = metadata !{metadata !"clang version 3.6.0 "}
|
Loading…
x
Reference in New Issue
Block a user