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

Side by Side Diff: tests_lit/llvm2ice_tests/ebp_args.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, 9 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
OLDNEW
1 ; This test originally exhibited a bug in ebp-based stack slots. The 1 ; This test originally exhibited a bug in ebp-based stack slots. The
2 ; problem was that during a function call push sequence, the esp 2 ; problem was that during a function call push sequence, the esp
3 ; adjustment was incorrectly added to the stack/frame offset for 3 ; adjustment was incorrectly added to the stack/frame offset for
4 ; ebp-based frames. 4 ; ebp-based frames.
5 5
6 ; RUN: %p2i --assemble --disassemble -i %s --args -Om1 --verbose none \ 6 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 | FileCheck %s
7 ; RUN: | FileCheck %s
8 7
9 declare i32 @memcpy_helper2(i32 %buf, i32 %buf2, i32 %n) 8 declare i32 @memcpy_helper2(i32 %buf, i32 %buf2, i32 %n)
10 9
11 define i32 @memcpy_helper(i32 %buf, i32 %n) { 10 define i32 @memcpy_helper(i32 %buf, i32 %n) {
12 entry: 11 entry:
13 %buf2 = alloca i8, i32 128, align 4 12 %buf2 = alloca i8, i32 128, align 4
14 %n.arg_trunc = trunc i32 %n to i8 13 %n.arg_trunc = trunc i32 %n to i8
15 %arg.ext = zext i8 %n.arg_trunc to i32 14 %arg.ext = zext i8 %n.arg_trunc to i32
16 %buf2.asint = ptrtoint i8* %buf2 to i32 15 %buf2.asint = ptrtoint i8* %buf2 to i32
17 %call = call i32 @memcpy_helper2(i32 %buf, i32 %buf2.asint, i32 %arg.ext) 16 %call = call i32 @memcpy_helper2(i32 %buf, i32 %buf2.asint, i32 %arg.ext)
(...skipping 15 matching lines...) Expand all
33 ; CHECK: movzx eax,BYTE PTR [ebp-0x8] 32 ; CHECK: movzx eax,BYTE PTR [ebp-0x8]
34 ; CHECK: mov DWORD PTR [ebp-0xc],eax 33 ; CHECK: mov DWORD PTR [ebp-0xc],eax
35 ; CHECK: sub esp,0x10 34 ; CHECK: sub esp,0x10
36 ; CHECK: mov eax,DWORD PTR [ebp+0x8] 35 ; CHECK: mov eax,DWORD PTR [ebp+0x8]
37 ; CHECK: mov DWORD PTR [esp],eax 36 ; CHECK: mov DWORD PTR [esp],eax
38 ; CHECK: mov eax,DWORD PTR [ebp-0x4] 37 ; CHECK: mov eax,DWORD PTR [ebp-0x4]
39 ; CHECK: mov DWORD PTR [esp+0x4],eax 38 ; CHECK: mov DWORD PTR [esp+0x4],eax
40 ; CHECK: mov eax,DWORD PTR [ebp-0xc] 39 ; CHECK: mov eax,DWORD PTR [ebp-0xc]
41 ; CHECK: mov DWORD PTR [esp+0x8],eax 40 ; CHECK: mov DWORD PTR [esp+0x8],eax
42 ; CHECK: call {{.*}} R_{{.*}} memcpy_helper2 41 ; CHECK: call {{.*}} R_{{.*}} memcpy_helper2
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/div_legalization.ll ('k') | tests_lit/llvm2ice_tests/elf_function_sections.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698