diff options
author | JF Bastien <jfb@google.com> | 2015-08-24 21:59:51 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2015-08-24 21:59:51 +0000 |
commit | d8a9d66d50a8c86721925eec6a1ab10a6c8d19be (patch) | |
tree | fc071951ef0fa1f7db8956d12c8036cad95a888a /llvm/test/CodeGen/WebAssembly/call.ll | |
parent | d8879c85f68250baa6f2ebc463259201782e8460 (diff) | |
download | bcm5719-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.ll | 22 |
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 |