summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly/call.ll
diff options
context:
space:
mode:
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