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

Unified Diff: tests_lit/llvm2ice_tests/ebp_args.ll

Issue 914263005: Subzero: switch from llvm-objdump to objdump for lit tests (for LLVM merge) (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: fix some line wrap 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/div_legalization.ll ('k') | tests_lit/llvm2ice_tests/elf_container.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/ebp_args.ll
diff --git a/tests_lit/llvm2ice_tests/ebp_args.ll b/tests_lit/llvm2ice_tests/ebp_args.ll
index 03959bb7535d6d8711c2c91e5c9ace8120f71d78..6533fbb6402724c5e62e6c599e50560b531bd3dc 100644
--- a/tests_lit/llvm2ice_tests/ebp_args.ll
+++ b/tests_lit/llvm2ice_tests/ebp_args.ll
@@ -3,9 +3,8 @@
; adjustment was incorrectly added to the stack/frame offset for
; ebp-based frames.
-; RUN: %p2i -i %s --args -Om1 --target=x8632 --verbose none \
-; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
-; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s
+; RUN: %p2i --assemble --disassemble -i %s --args -Om1 --verbose none \
+; RUN: | FileCheck %s
declare i32 @memcpy_helper2(i32 %buf, i32 %buf2, i32 %n)
@@ -13,9 +12,9 @@ define i32 @memcpy_helper(i32 %buf, i32 %n) {
entry:
%buf2 = alloca i8, i32 128, align 4
%n.arg_trunc = trunc i32 %n to i8
- %arg_ext = zext i8 %n.arg_trunc to i32
+ %arg.ext = zext i8 %n.arg_trunc to i32
%buf2.asint = ptrtoint i8* %buf2 to i32
- %call = call i32 @memcpy_helper2(i32 %buf, i32 %buf2.asint, i32 %arg_ext)
+ %call = call i32 @memcpy_helper2(i32 %buf, i32 %buf2.asint, i32 %arg.ext)
ret i32 %call
}
@@ -23,21 +22,21 @@ entry:
; and stack slot assignment code, and may need to be relaxed if the
; lowering code changes.
-; CHECK-LABEL: memcpy_helper:
+; CHECK-LABEL: memcpy_helper
; CHECK: push ebp
-; CHECK: mov ebp, esp
-; CHECK: sub esp, 24
-; CHECK: sub esp, 128
-; CHECK: mov dword ptr [ebp - 4], esp
-; CHECK: mov eax, dword ptr [ebp + 12]
-; CHECK: mov dword ptr [ebp - 8], eax
-; CHECK: movzx eax, byte ptr [ebp - 8]
-; CHECK: mov dword ptr [ebp - 12], eax
-; CHECK: sub esp, 16
-; CHECK: mov eax, dword ptr [ebp + 8]
-; CHECK: mov dword ptr [esp], eax
-; CHECK: mov eax, dword ptr [ebp - 4]
-; CHECK: mov dword ptr [esp + 4], eax
-; CHECK: mov eax, dword ptr [ebp - 12]
-; CHECK: mov dword ptr [esp + 8], eax
-; CHECK: call memcpy_helper2
+; CHECK: mov ebp,esp
+; CHECK: sub esp,0x18
+; CHECK: sub esp,0x80
+; CHECK: mov DWORD PTR [ebp-0x4],esp
+; CHECK: mov eax,DWORD PTR [ebp+0xc]
+; CHECK: mov DWORD PTR [ebp-0x8],eax
+; CHECK: movzx eax,BYTE PTR [ebp-0x8]
+; CHECK: mov DWORD PTR [ebp-0xc],eax
+; CHECK: sub esp,0x10
+; CHECK: mov eax,DWORD PTR [ebp+0x8]
+; CHECK: mov DWORD PTR [esp],eax
+; CHECK: mov eax,DWORD PTR [ebp-0x4]
+; CHECK: mov DWORD PTR [esp+0x4],eax
+; CHECK: mov eax,DWORD PTR [ebp-0xc]
+; CHECK: mov DWORD PTR [esp+0x8],eax
+; CHECK: call {{.*}} R_{{.*}} memcpy_helper2
« no previous file with comments | « tests_lit/llvm2ice_tests/div_legalization.ll ('k') | tests_lit/llvm2ice_tests/elf_container.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698