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

Unified Diff: tests_lit/llvm2ice_tests/alloc.ll

Issue 1435363002: Merge fixed alloca stack adjustments into the prolog (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Final code review comments 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 | « src/PNaClTranslator.cpp ('k') | tests_lit/llvm2ice_tests/fused-alloca.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/alloc.ll
diff --git a/tests_lit/llvm2ice_tests/alloc.ll b/tests_lit/llvm2ice_tests/alloc.ll
index 53e184226aed280f7c226722037c97fdc17308f1..7b08afb0788314cc0c58f54610fd295937b483da 100644
--- a/tests_lit/llvm2ice_tests/alloc.ll
+++ b/tests_lit/llvm2ice_tests/alloc.ll
@@ -6,7 +6,8 @@
; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \
; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \
-; RUN: | %if --need=target_X8632 --command FileCheck %s
+; RUN: | %if --need=target_X8632 --command FileCheck \
+; RUN: --check-prefix CHECK-OPTM1 %s
; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented)
; once enough infrastructure is in. Also, switch to --filetype=obj
@@ -33,11 +34,18 @@ entry:
ret void
}
; CHECK-LABEL: fixed_416_align_16
-; CHECK: sub esp,0x1a0
+; CHECK: sub esp,0x1ac
; CHECK: sub esp,0x10
; CHECK: mov DWORD PTR [esp],eax
; CHECK: call {{.*}} R_{{.*}} f1
+; CHECK-OPTM1-LABEL: fixed_416_align_16
+; CHECK-OPTM1: sub esp,0xc
+; CHECK-OPTM1: sub esp,0x1a0
+; CHECK-OPTM1: sub esp,0x10
+; CHECK-OPTM1: mov DWORD PTR [esp],eax
+; CHECK-OPTM1: call {{.*}} R_{{.*}} f1
+
; ARM32-LABEL: fixed_416_align_16
; ARM32: sub sp, sp, #416
; ARM32: bl {{.*}} R_{{.*}} f1
@@ -52,8 +60,8 @@ entry:
; CHECK-LABEL: fixed_416_align_32
; CHECK: push ebp
; CHECK-NEXT: mov ebp,esp
+; CHECK: sub esp,0x1a8
; CHECK: and esp,0xffffffe0
-; CHECK: sub esp,0x1a0
; CHECK: sub esp,0x10
; CHECK: mov DWORD PTR [esp],eax
; CHECK: call {{.*}} R_{{.*}} f1
@@ -72,11 +80,16 @@ entry:
ret void
}
; CHECK-LABEL: fixed_351_align_16
-; CHECK: sub esp,0x160
-; CHECK: sub esp,0x10
+; CHECK: sub esp,0x16c
; CHECK: mov DWORD PTR [esp],eax
; CHECK: call {{.*}} R_{{.*}} f1
+; CHECK-OPTM1-LABEL: fixed_351_align_16
+; CHECK-OPTM1: sub esp,0xc
+; CHECK-OPTM1: sub esp,0x160
+; CHECK-OPTM1: mov DWORD PTR [esp],eax
+; CHECK-OPTM1: call {{.*}} R_{{.*}} f1
+
; ARM32-LABEL: fixed_351_align_16
; ARM32: sub sp, sp, #352
; ARM32: bl {{.*}} R_{{.*}} f1
@@ -91,8 +104,8 @@ entry:
; CHECK-LABEL: fixed_351_align_32
; CHECK: push ebp
; CHECK-NEXT: mov ebp,esp
+; CHECK: sub esp,0x168
; CHECK: and esp,0xffffffe0
-; CHECK: sub esp,0x160
; CHECK: sub esp,0x10
; CHECK: mov DWORD PTR [esp],eax
; CHECK: call {{.*}} R_{{.*}} f1
« no previous file with comments | « src/PNaClTranslator.cpp ('k') | tests_lit/llvm2ice_tests/fused-alloca.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698