Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 ; Tests that we generate an ELF container with fields that make sense, | 1 ; Tests that we generate an ELF container with fields that make sense, |
| 2 ; cross-validating against llvm-mc. | 2 ; cross-validating against llvm-mc. |
| 3 | 3 |
| 4 ; For the integrated ELF writer, we can't pipe the output because we need | 4 ; For the integrated ELF writer, we can't pipe the output because we need |
| 5 ; to seek backward and patch up the file headers. So, use a temporary file. | 5 ; to seek backward and patch up the file headers. So, use a temporary file. |
| 6 ; RUN: %p2i -i %s --filetype=obj --output %t --args -O2 --verbose none \ | 6 ; RUN: %p2i -i %s --filetype=obj --output %t --args -O2 --verbose none \ |
| 7 ; RUN: -allow-externally-defined-symbols \ | 7 ; RUN: -allow-externally-defined-symbols \ |
| 8 ; RUN: && llvm-readobj -file-headers -sections -section-data \ | 8 ; RUN: && llvm-readobj -file-headers -sections -section-data \ |
| 9 ; RUN: -relocations -symbols %t | FileCheck %s | 9 ; RUN: -relocations -symbols %t | FileCheck %s |
| 10 | 10 |
| 11 ; RUN: %if --need=allow_dump --command %p2i -i %s --args -O2 --verbose none \ | 11 ; RUN: %if --need=allow_dump --command %p2i -i %s --args -O2 --verbose none \ |
| 12 ; RUN: -allow-externally-defined-symbols \ | 12 ; RUN: -allow-externally-defined-symbols \ |
| 13 ; RUN: | %if --need=allow_dump --command llvm-mc -triple=i686-nacl \ | 13 ; RUN: | %if --need=allow_dump --command llvm-mc -triple=i686-nacl \ |
| 14 ; RUN: -filetype=obj -o - \ | 14 ; RUN: -filetype=obj -o - \ |
| 15 ; RUN: | %if --need=allow_dump --command llvm-readobj -file-headers \ | 15 ; RUN: | %if --need=allow_dump --command llvm-readobj -file-headers \ |
| 16 ; RUN: -sections -section-data -relocations -symbols - \ | 16 ; RUN: -sections -section-data -relocations -symbols - \ |
| 17 ; RUN: | %if --need=allow_dump --command FileCheck %s | 17 ; RUN: | %if --need=allow_dump --command FileCheck %s |
| 18 | 18 |
| 19 ; Add a run that shows relocations in code inline. | 19 ; Add a run that shows relocations in code inline. |
| 20 ; RUN: %p2i -i %s --filetype=obj --output %t --args -O2 --verbose none \ | 20 ; RUN: %p2i -i %s --filetype=obj --output %t --args -O2 --verbose none \ |
|
Jim Stichnoth
2016/03/09 14:38:05
Add "--disassemble" before --args (and remove "--v
Sean Klein
2016/03/09 18:27:44
Done.
| |
| 21 ; RUN: -allow-externally-defined-symbols \ | 21 ; RUN: -allow-externally-defined-symbols \ |
| 22 ; RUN: && le32-nacl-objdump -w -d -r -Mintel %t \ | 22 ; RUN: && arm-nacl-objdump -w -d -r -Mintel %t \ |
|
Jim Stichnoth
2016/03/09 14:38:05
... and remove this line entirely, because that is
Sean Klein
2016/03/09 18:27:44
Done.
| |
| 23 ; RUN: | FileCheck --check-prefix=TEXT-RELOCS %s | 23 ; RUN: | FileCheck --check-prefix=TEXT-RELOCS %s |
| 24 | 24 |
| 25 ; Use intrinsics to test external calls. | 25 ; Use intrinsics to test external calls. |
| 26 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) | 26 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) |
| 27 declare void @llvm.memset.p0i8.i32(i8*, i8, i32, i32, i1) | 27 declare void @llvm.memset.p0i8.i32(i8*, i8, i32, i32, i1) |
| 28 | 28 |
| 29 ; Try other external functions (for cross tests). | 29 ; Try other external functions (for cross tests). |
| 30 ; Not testing external global variables since the NaCl bitcode writer | 30 ; Not testing external global variables since the NaCl bitcode writer |
| 31 ; refuses to freeze such IR. | 31 ; refuses to freeze such IR. |
| 32 declare void @external_foo(i32) | 32 declare void @external_foo(i32) |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 641 ; CHECK: Symbol { | 641 ; CHECK: Symbol { |
| 642 ; CHECK: Name: memset | 642 ; CHECK: Name: memset |
| 643 ; CHECK-NEXT: Value: 0x0 | 643 ; CHECK-NEXT: Value: 0x0 |
| 644 ; CHECK-NEXT: Size: 0 | 644 ; CHECK-NEXT: Size: 0 |
| 645 ; CHECK-NEXT: Binding: Global | 645 ; CHECK-NEXT: Binding: Global |
| 646 ; CHECK-NEXT: Type: None | 646 ; CHECK-NEXT: Type: None |
| 647 ; CHECK-NEXT: Other: 0 | 647 ; CHECK-NEXT: Other: 0 |
| 648 ; CHECK-NEXT: Section: Undefined | 648 ; CHECK-NEXT: Section: Undefined |
| 649 ; CHECK-NEXT: } | 649 ; CHECK-NEXT: } |
| 650 ; CHECK: ] | 650 ; CHECK: ] |
| OLD | NEW |