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

Unified Diff: tests_lit/llvm2ice_tests/fused-alloca-arg.ll

Issue 1472623002: Unify alloca, outgoing arg, and prolog construction (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review fixes. Also removed StackAdjustment. Created 5 years, 1 month 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/fused-alloca.ll ('k') | tests_lit/llvm2ice_tests/icmp-with-zero.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/fused-alloca-arg.ll
diff --git a/tests_lit/llvm2ice_tests/fused-alloca-arg.ll b/tests_lit/llvm2ice_tests/fused-alloca-arg.ll
index 5d9ec943a50dd9201629720de8a53f32c00d46b9..1b009bae17e223aff454e47175d0bba6f0deb4a2 100644
--- a/tests_lit/llvm2ice_tests/fused-alloca-arg.ll
+++ b/tests_lit/llvm2ice_tests/fused-alloca-arg.ll
@@ -17,10 +17,9 @@ entry:
}
; CHECK-LABEL: caller1
-; CHECK-NEXT: sub esp,0x2c
-; CHECK-NEXT: mov eax,DWORD PTR [esp+0x30]
-; CHECK-NEXT: mov DWORD PTR [esp],eax
-; CHECK-NEXT: sub esp,0x20
+; CHECK-NEXT: sub esp,0x4c
+; CHECK-NEXT: mov eax,DWORD PTR [esp+0x50]
+; CHECK-NEXT: mov DWORD PTR [esp+0x20],eax
; CHECK-NEXT: mov DWORD PTR [esp],eax
; CHECK-NEXT: lea eax,[esp+0x20]
; CHECK-NEXT: mov DWORD PTR [esp+0x4],eax
@@ -31,8 +30,7 @@ entry:
; CHECK-NEXT: lea eax,[esp+0x20]
; CHECK-NEXT: mov DWORD PTR [esp+0x10],eax
; CHECK-NEXT: call
-; CHECK-NEXT: add esp,0x20
-; CHECK-NEXT: add esp,0x2c
+; CHECK-NEXT: add esp,0x4c
; CHECK-NEXT: ret
; Test that alloca base addresses get passed correctly to functions.
@@ -49,11 +47,10 @@ entry:
}
; CHECK-LABEL: caller2
-; CHECK-NEXT: sub esp,0x4c
-; CHECK-NEXT: mov eax,DWORD PTR [esp+0x50]
-; CHECK-NEXT: mov DWORD PTR [esp],eax
+; CHECK-NEXT: sub esp,0x6c
+; CHECK-NEXT: mov eax,DWORD PTR [esp+0x70]
; CHECK-NEXT: mov DWORD PTR [esp+0x20],eax
-; CHECK-NEXT: sub esp,0x20
+; CHECK-NEXT: mov DWORD PTR [esp+0x40],eax
; CHECK-NEXT: mov DWORD PTR [esp],eax
; CHECK-NEXT: lea eax,[esp+0x20]
; CHECK-NEXT: mov DWORD PTR [esp+0x4],eax
@@ -64,6 +61,5 @@ entry:
; CHECK-NEXT: lea eax,[esp+0x40]
; CHECK-NEXT: mov DWORD PTR [esp+0x10],eax
; CHECK-NEXT: call
-; CHECK-NEXT: add esp,0x20
-; CHECK-NEXT: add esp,0x4c
+; CHECK-NEXT: add esp,0x6c
; CHECK-NEXT: ret
« no previous file with comments | « tests_lit/llvm2ice_tests/fused-alloca.ll ('k') | tests_lit/llvm2ice_tests/icmp-with-zero.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698