Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: tests_lit/llvm2ice_tests/elf_nodata.ll

Issue 955003002: Subzero: Clean up function header emission. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix the tests that were broken as a result Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/elf_function_sections.ll ('k') | tests_lit/llvm2ice_tests/fp.pnacl.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 --verbose none -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: %p2i -i %s --args -O2 --verbose none \ 8 ; RUN: %if --need=allow_dump --command %p2i -i %s --args -O2 \
9 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj -o - \ 9 ; RUN: | %if --need=allow_dump --command \
10 ; RUN: | llvm-readobj -file-headers -sections -section-data \ 10 ; RUN: llvm-mc -triple=i686-none-nacl -filetype=obj -o - \
11 ; RUN: -relocations -symbols - | FileCheck %s 11 ; RUN: | %if --need=allow_dump --command \
12 ; RUN: llvm-readobj -file-headers -sections -section-data \
13 ; RUN: -relocations -symbols - \
14 ; RUN: | %if --need=allow_dump --command FileCheck %s
12 15
13 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)
14 17
15 define internal i32 @foo(i32 %x, i32 %len) { 18 define internal i32 @foo(i32 %x, i32 %len) {
16 %y = add i32 %x, %x 19 %y = add i32 %x, %x
17 %dst = inttoptr i32 %y to i8* 20 %dst = inttoptr i32 %y to i8*
18 %src = inttoptr i32 %x to i8* 21 %src = inttoptr i32 %x to i8*
19 call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dst, i8* %src, 22 call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dst, i8* %src,
20 i32 %len, i32 1, i1 false) 23 i32 %len, i32 1, i1 false)
21 24
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 ; CHECK: Symbol { 119 ; CHECK: Symbol {
117 ; CHECK: Name: memcpy 120 ; CHECK: Name: memcpy
118 ; CHECK-NEXT: Value: 0x0 121 ; CHECK-NEXT: Value: 0x0
119 ; CHECK-NEXT: Size: 0 122 ; CHECK-NEXT: Size: 0
120 ; CHECK-NEXT: Binding: Global 123 ; CHECK-NEXT: Binding: Global
121 ; CHECK-NEXT: Type: None 124 ; CHECK-NEXT: Type: None
122 ; CHECK-NEXT: Other: 0 125 ; CHECK-NEXT: Other: 0
123 ; CHECK-NEXT: Section: Undefined 126 ; CHECK-NEXT: Section: Undefined
124 ; CHECK-NEXT: } 127 ; CHECK-NEXT: }
125 ; CHECK: ] 128 ; CHECK: ]
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/elf_function_sections.ll ('k') | tests_lit/llvm2ice_tests/fp.pnacl.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698