| OLD | NEW |
| 1 ; Tests that we generate an ELF container correctly when there | 1 ; Tests that we generate an ELF container correctly when there |
| 2 ; is no data section. | 2 ; is no data section. |
| 3 | 3 |
| 4 ; RUN: %p2i -i %s --filetype=obj --args -O2 -o %t \ | 4 ; RUN: %p2i -i %s --filetype=obj --args -O2 -o %t \ |
| 5 ; RUN: && llvm-readobj -file-headers -sections -section-data \ | 5 ; RUN: && llvm-readobj -file-headers -sections -section-data \ |
| 6 ; RUN: -relocations -symbols %t | FileCheck %s | 6 ; RUN: -relocations -symbols %t | FileCheck %s |
| 7 | 7 |
| 8 ; RUN: %if --need=allow_dump --command %p2i -i %s --args -O2 \ | 8 ; RUN: %if --need=allow_dump --command %p2i -i %s --args -O2 \ |
| 9 ; RUN: | %if --need=allow_dump --command \ | 9 ; RUN: | %if --need=allow_dump --command \ |
| 10 ; RUN: llvm-mc -triple=i686-none-nacl -filetype=obj -o - \ | 10 ; RUN: llvm-mc -triple=i686-nacl -filetype=obj -o - \ |
| 11 ; RUN: | %if --need=allow_dump --command \ | 11 ; RUN: | %if --need=allow_dump --command \ |
| 12 ; RUN: llvm-readobj -file-headers -sections -section-data \ | 12 ; RUN: llvm-readobj -file-headers -sections -section-data \ |
| 13 ; RUN: -relocations -symbols - \ | 13 ; RUN: -relocations -symbols - \ |
| 14 ; RUN: | %if --need=allow_dump --command FileCheck %s | 14 ; RUN: | %if --need=allow_dump --command FileCheck %s |
| 15 | 15 |
| 16 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) | 16 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) |
| 17 | 17 |
| 18 define internal i32 @foo(i32 %x, i32 %len) { | 18 define internal i32 @foo(i32 %x, i32 %len) { |
| 19 %y = add i32 %x, %x | 19 %y = add i32 %x, %x |
| 20 %dst = inttoptr i32 %y to i8* | 20 %dst = inttoptr i32 %y to i8* |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 ; CHECK: Symbol { | 119 ; CHECK: Symbol { |
| 120 ; CHECK: Name: memcpy | 120 ; CHECK: Name: memcpy |
| 121 ; CHECK-NEXT: Value: 0x0 | 121 ; CHECK-NEXT: Value: 0x0 |
| 122 ; CHECK-NEXT: Size: 0 | 122 ; CHECK-NEXT: Size: 0 |
| 123 ; CHECK-NEXT: Binding: Global | 123 ; CHECK-NEXT: Binding: Global |
| 124 ; CHECK-NEXT: Type: None | 124 ; CHECK-NEXT: Type: None |
| 125 ; CHECK-NEXT: Other: 0 | 125 ; CHECK-NEXT: Other: 0 |
| 126 ; CHECK-NEXT: Section: Undefined | 126 ; CHECK-NEXT: Section: Undefined |
| 127 ; CHECK-NEXT: } | 127 ; CHECK-NEXT: } |
| 128 ; CHECK: ] | 128 ; CHECK: ] |
| OLD | NEW |