summaryrefslogtreecommitdiff
path: root/test/CodeGen/WebAssembly
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2017-12-05 17:23:43 +0000
committerDan Gohman <dan433584@gmail.com>2017-12-05 17:23:43 +0000
commitf07a1d491b59b808f612ad6046471ad06f211dd5 (patch)
treef87df85cb427c23c7164b228a971b09a30c6cdff /test/CodeGen/WebAssembly
parent314790b9d8379b27f806ce8bbbc5c47ab62a51ed (diff)
[WebAssembly] Implement WASM_STACK_POINTER.
Use the .stack_pointer directive to implement WASM_STACK_POINTER for specifying a global variable to be the stack pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/WebAssembly')
-rw-r--r--test/CodeGen/WebAssembly/stack-alignment.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/WebAssembly/stack-alignment.ll b/test/CodeGen/WebAssembly/stack-alignment.ll
index 25e9d06db41..6128c8a4d23 100644
--- a/test/CodeGen/WebAssembly/stack-alignment.ll
+++ b/test/CodeGen/WebAssembly/stack-alignment.ll
@@ -147,3 +147,5 @@ entry:
call void @somefunc(i32* %static)
ret void
}
+
+; CHECK: .stack_pointer __stack_pointer