e5d468b3cd1c2a2bffcfac9e9bbc84e00fb82f30
[oota-llvm.git] / test / CodeGen / WebAssembly / call.ll
1 ; RUN: llc < %s -asm-verbose=false | FileCheck %s
2
3 ; Test that basic call operations assemble as expected.
4
5 target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
6 target triple = "wasm32-unknown-unknown"
7
8 declare void @nullary()
9
10 ; CHECK-LABEL: call_nullary:
11 ; CHECK-NEXT: (call @foo)
12 ; CHECK-NEXT: (return)
13 define void @call_nullary() {
14   call void @nullary()
15   ret void
16 }
17
18
19 ; tail call
20 ; multiple args
21 ; interesting returns (int, float, struct, multiple)
22 ; vararg