llvm.org GIT mirror llvm / b23e9d7
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 Eric Christopher 6 years ago
7 changed file(s) with 113 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llc -filetype=obj -O0 < %s -mtriple aarch64-unknown-linux | \
1 ; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
2
3 ; CHECK-NOT: failed to compute relocation
4
5 !llvm.dbg.cu = !{!0}
6 !llvm.module.flags = !{!3, !4}
7 !llvm.ident = !{!5}
8
9 !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]
10 !1 = metadata !{metadata !"empty.c", metadata !"/a"}
11 !2 = metadata !{}
12 !3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
13 !4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
14 !5 = metadata !{metadata !"clang version 3.6.0 "}
0 ; RUN: llc -filetype=obj -O0 < %s -mtriple arm-unknown-linux | \
1 ; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
2
3 ; CHECK-NOT: failed to compute relocation
4
5 !llvm.dbg.cu = !{!0}
6 !llvm.module.flags = !{!3, !4}
7 !llvm.ident = !{!5}
8
9 !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]
10 !1 = metadata !{metadata !"empty.c", metadata !"/a"}
11 !2 = metadata !{}
12 !3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
13 !4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
14 !5 = metadata !{metadata !"clang version 3.6.0 "}
0 ; RUN: llc -filetype=obj -O0 < %s -mtriple mips-unknown-linux | \
1 ; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
2 ; RUN: llc -filetype=obj -O0 < %s -mtriple mips64-unknown-linux | \
3 ; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
4
5 ; CHECK-NOT: failed to compute relocation
6
7 !llvm.dbg.cu = !{!0}
8 !llvm.module.flags = !{!3, !4}
9 !llvm.ident = !{!5}
10
11 !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]
12 !1 = metadata !{metadata !"empty.c", metadata !"/a"}
13 !2 = metadata !{}
14 !3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
15 !4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
16 !5 = metadata !{metadata !"clang version 3.6.0 "}
0 ; RUN: llc -filetype=obj -O0 < %s -mtriple powerpc64-unknown-linux | \
1 ; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
2 ; RUN: llc -filetype=obj -O0 < %s -mtriple powerpc-unknown-linux | \
3 ; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
4
5 ; CHECK-NOT: failed to compute relocation
6
7 !llvm.dbg.cu = !{!0}
8 !llvm.module.flags = !{!3, !4}
9 !llvm.ident = !{!5}
10
11 !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]
12 !1 = metadata !{metadata !"empty.c", metadata !"/a"}
13 !2 = metadata !{}
14 !3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
15 !4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
16 !5 = metadata !{metadata !"clang version 3.6.0 "}
0 ; RUN: llc -filetype=obj -O0 < %s -mtriple sparc-unknown-linux | \
1 ; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
2 ; RUN: llc -filetype=obj -O0 < %s -mtriple sparcv9-unknown-linux | \
3 ; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
4
5 ; CHECK-NOT: failed to compute relocation
6
7 !llvm.dbg.cu = !{!0}
8 !llvm.module.flags = !{!3, !4}
9 !llvm.ident = !{!5}
10
11 !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]
12 !1 = metadata !{metadata !"empty.c", metadata !"/a"}
13 !2 = metadata !{}
14 !3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
15 !4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
16 !5 = metadata !{metadata !"clang version 3.6.0 "}
0 ; RUN: llc -filetype=obj -O0 < %s -mtriple s390x-unknown-linux | \
1 ; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
2
3 ; CHECK-NOT: failed to compute relocation
4
5 !llvm.dbg.cu = !{!0}
6 !llvm.module.flags = !{!3, !4}
7 !llvm.ident = !{!5}
8
9 !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]
10 !1 = metadata !{metadata !"empty.c", metadata !"/a"}
11 !2 = metadata !{}
12 !3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
13 !4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
14 !5 = metadata !{metadata !"clang version 3.6.0 "}
0 ; RUN: llc -filetype=obj -O0 < %s -mtriple x86_64-none-linux | \
1 ; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
2 ; RUN: llc -filetype=obj -O0 < %s -mtriple i386-none-linux | \
3 ; RUN: llvm-dwarfdump - 2>&1 | FileCheck %s
4
5 ; CHECK-NOT: failed to compute relocation
6
7 !llvm.dbg.cu = !{!0}
8 !llvm.module.flags = !{!3, !4}
9 !llvm.ident = !{!5}
10
11 !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]
12 !1 = metadata !{metadata !"empty.c", metadata !"/a"}
13 !2 = metadata !{}
14 !3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
15 !4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
16 !5 = metadata !{metadata !"clang version 3.6.0 "}