blob: e5d468b3cd1c2a2bffcfac9e9bbc84e00fb82f30 [file] [log] [blame]
JF Bastiend8a9d662015-08-24 21:59:51 +00001; RUN: llc < %s -asm-verbose=false | FileCheck %s
2
3; Test that basic call operations assemble as expected.
4
5target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
6target triple = "wasm32-unknown-unknown"
7
JF Bastien19c2e662015-08-24 22:07:33 +00008declare void @nullary()
JF Bastiend8a9d662015-08-24 21:59:51 +00009
JF Bastien19c2e662015-08-24 22:07:33 +000010; CHECK-LABEL: call_nullary:
JF Bastiend8a9d662015-08-24 21:59:51 +000011; CHECK-NEXT: (call @foo)
12; CHECK-NEXT: (return)
JF Bastien19c2e662015-08-24 22:07:33 +000013define void @call_nullary() {
14 call void @nullary()
JF Bastiend8a9d662015-08-24 21:59:51 +000015 ret void
16}
17
18
19; tail call
20; multiple args
21; interesting returns (int, float, struct, multiple)
22; vararg