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 --args -O2 --verbose none -elf-writer -o %t \ | 6 ; RUN: %p2i -i %s --args -O2 --verbose none -filetype=obj -o %t \ |
7 ; RUN: && llvm-readobj -file-headers -sections -section-data \ | 7 ; RUN: && llvm-readobj -file-headers -sections -section-data \ |
8 ; RUN: -relocations -symbols %t | FileCheck %s | 8 ; RUN: -relocations -symbols %t | FileCheck %s |
9 | 9 |
10 ; RUN: %p2i -i %s --args -O2 --verbose none \ | 10 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
11 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj -o - \ | 11 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj -o - \ |
12 ; RUN: | llvm-readobj -file-headers -sections -section-data \ | 12 ; RUN: | llvm-readobj -file-headers -sections -section-data \ |
13 ; RUN: -relocations -symbols - | FileCheck %s | 13 ; RUN: -relocations -symbols - | FileCheck %s |
14 | 14 |
15 ; Add a run that shows relocations in code inline. | 15 ; Add a run that shows relocations in code inline. |
16 ; RUN: %p2i -i %s --args -O2 --verbose none -elf-writer -o %t \ | 16 ; RUN: %p2i -i %s --args -O2 --verbose none -filetype=obj -o %t \ |
17 ; RUN: && llvm-objdump -d -r -x86-asm-syntax=intel %t \ | 17 ; RUN: && llvm-objdump -d -r -x86-asm-syntax=intel %t \ |
18 ; RUN: | FileCheck --check-prefix=TEXT-RELOCS %s | 18 ; RUN: | FileCheck --check-prefix=TEXT-RELOCS %s |
19 | 19 |
20 ; Use intrinsics to test external calls. | 20 ; Use intrinsics to test external calls. |
21 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) | 21 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) |
22 declare void @llvm.memset.p0i8.i32(i8*, i8, i32, i32, i1) | 22 declare void @llvm.memset.p0i8.i32(i8*, i8, i32, i32, i1) |
23 | 23 |
24 ; Try other external functions (for cross tests). | 24 ; Try other external functions (for cross tests). |
25 ; Not testing external global variables since the NaCl bitcode writer | 25 ; Not testing external global variables since the NaCl bitcode writer |
26 ; refuses to freeze such IR. | 26 ; refuses to freeze such IR. |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 ; CHECK: Symbol { | 646 ; CHECK: Symbol { |
647 ; CHECK: Name: memset | 647 ; CHECK: Name: memset |
648 ; CHECK-NEXT: Value: 0x0 | 648 ; CHECK-NEXT: Value: 0x0 |
649 ; CHECK-NEXT: Size: 0 | 649 ; CHECK-NEXT: Size: 0 |
650 ; CHECK-NEXT: Binding: Global | 650 ; CHECK-NEXT: Binding: Global |
651 ; CHECK-NEXT: Type: None | 651 ; CHECK-NEXT: Type: None |
652 ; CHECK-NEXT: Other: 0 | 652 ; CHECK-NEXT: Other: 0 |
653 ; CHECK-NEXT: Section: Undefined | 653 ; CHECK-NEXT: Section: Undefined |
654 ; CHECK-NEXT: } | 654 ; CHECK-NEXT: } |
655 ; CHECK: ] | 655 ; CHECK: ] |
OLD | NEW |