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 a66693fd04198f010a513ccd0a4704a68ce31d9c..03959bb7535d6d8711c2c91e5c9ace8120f71d78 100644 |
--- a/tests_lit/llvm2ice_tests/ebp_args.ll |
+++ b/tests_lit/llvm2ice_tests/ebp_args.ll |
@@ -3,9 +3,7 @@ |
; adjustment was incorrectly added to the stack/frame offset for |
; ebp-based frames. |
-; TODO(kschimpf) Find out why lc2i is needed. |
-; REQUIRES: allow_llvm_ir_as_input |
-; RUN: %lc2i -i %s --args -Om1 --target=x8632 --verbose none \ |
+; 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 |
@@ -13,10 +11,10 @@ declare i32 @memcpy_helper2(i32 %buf, i32 %buf2, i32 %n) |
define i32 @memcpy_helper(i32 %buf, i32 %n) { |
entry: |
- %n.arg_trunc = trunc i32 %n to i8 |
%buf2 = alloca i8, i32 128, align 4 |
- %buf2.asint = ptrtoint i8* %buf2 to i32 |
+ %n.arg_trunc = trunc i32 %n to i8 |
%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) |
ret i32 %call |
} |
@@ -29,19 +27,17 @@ entry: |
; CHECK: push ebp |
; CHECK: mov ebp, esp |
; CHECK: sub esp, 24 |
-; CHECK: mov eax, dword ptr [ebp + 12] |
-; CHECK: mov dword ptr [ebp - 4], eax |
; CHECK: sub esp, 128 |
-; CHECK: mov dword ptr [ebp - 8], esp |
-; CHECK: mov eax, dword ptr [ebp - 8] |
+; 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: movzx eax, byte ptr [ebp - 4] |
-; CHECK: mov dword ptr [ebp - 16], eax |
; CHECK: sub esp, 16 |
; CHECK: mov eax, dword ptr [ebp + 8] |
; CHECK: mov dword ptr [esp], eax |
-; CHECK: mov eax, dword ptr [ebp - 12] |
+; CHECK: mov eax, dword ptr [ebp - 4] |
; CHECK: mov dword ptr [esp + 4], eax |
-; CHECK: mov eax, dword ptr [ebp - 16] |
+; CHECK: mov eax, dword ptr [ebp - 12] |
; CHECK: mov dword ptr [esp + 8], eax |
; CHECK: call memcpy_helper2 |