summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly/non-executable-stack.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/non-executable-stack.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/non-executable-stack.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/non-executable-stack.ll b/llvm/test/CodeGen/WebAssembly/non-executable-stack.ll
new file mode 100644
index 00000000000..b81063724e9
--- /dev/null
+++ b/llvm/test/CodeGen/WebAssembly/non-executable-stack.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s -asm-verbose=false | FileCheck %s
+
+; Test that we don't emit anything declaring a non-executable stack,
+; because wasm's stack is always non-executable.
+
+target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
+target triple = "wasm32-unknown-unknown"
+
+; CHECK-NOT: .note.GNU-stack
OpenPOWER on IntegriCloud