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

Unified Diff: tests_lit/assembler/x86/sandboxing.ll

Issue 944333002: Subzero: Update tests and build scripts for sandboxing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More code review changes 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 | « src/IceTargetLoweringX8632.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/assembler/x86/sandboxing.ll
diff --git a/tests_lit/assembler/x86/sandboxing.ll b/tests_lit/assembler/x86/sandboxing.ll
index 0abc04020bc273475bcb930729b5ed76d8b4a70e..5eeb57ffa185225df0570677e92ac889be45e242 100644
--- a/tests_lit/assembler/x86/sandboxing.ll
+++ b/tests_lit/assembler/x86/sandboxing.ll
@@ -230,3 +230,23 @@ entry:
; CHECK: 40: {{.*}} nop
; CHECK: 5b: {{.*}} and [[REG]],0xffffffe0
; CHECK-NEXT: 5e: {{.*}} call [[REG]]
+
+; Stack adjustment state during an argument push sequence gets
+; properly checkpointed and restored during the two passes, as
+; observed by the stack adjustment for accessing stack-allocated
+; variables.
+define void @checkpoint_restore_stack_adjustment(i32 %arg) {
+entry:
+ call void @call_target()
+ ; bundle boundary
+ call void @checkpoint_restore_stack_adjustment(i32 %arg)
+ ret void
+}
+; CHECK-LABEL: checkpoint_restore_stack_adjustment
+; CHECK: call
+; CHECK: sub esp,0x10
+; The address of %arg should be [esp+0x20], not [esp+0x30].
+; CHECK-NEXT: mov [[REG:.*]],DWORD PTR [esp+0x20]
+; CHECK-NEXT: mov DWORD PTR [esp],[[REG]]
+; CHECK: call
+; CHECK: add esp,0x10
« no previous file with comments | « src/IceTargetLoweringX8632.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698