summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly/call.ll
diff options
context:
space:
mode:
authorJF Bastien <jfb@google.com>2015-08-24 21:59:51 +0000
committerJF Bastien <jfb@google.com>2015-08-24 21:59:51 +0000
commitd8a9d66d50a8c86721925eec6a1ab10a6c8d19be (patch)
treefc071951ef0fa1f7db8956d12c8036cad95a888a /llvm/test/CodeGen/WebAssembly/call.ll
parentd8879c85f68250baa6f2ebc463259201782e8460 (diff)
downloadbcm5719-llvm-d8a9d66d50a8c86721925eec6a1ab10a6c8d19be.tar.gz
bcm5719-llvm-d8a9d66d50a8c86721925eec6a1ab10a6c8d19be.zip
call
llvm-svn: 245882
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/call.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/call.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/call.ll b/llvm/test/CodeGen/WebAssembly/call.ll
new file mode 100644
index 00000000000..e5d468b3cd1
--- /dev/null
+++ b/llvm/test/CodeGen/WebAssembly/call.ll
@@ -0,0 +1,22 @@
+; RUN: llc < %s -asm-verbose=false | FileCheck %s
+
+; Test that basic call operations assemble as expected.
+
+target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
+target triple = "wasm32-unknown-unknown"
+
+declare void @nullary()
+
+; CHECK-LABEL: call_nullary:
+; CHECK-NEXT: (call @foo)
+; CHECK-NEXT: (return)
+define void @call_nullary() {
+ call void @nullary()
+ ret void
+}
+
+
+; tail call
+; multiple args
+; interesting returns (int, float, struct, multiple)
+; vararg
OpenPOWER on IntegriCloud