2015-08-25 05:59:51 +08:00
|
|
|
; 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"
|
|
|
|
|
2015-08-25 06:07:33 +08:00
|
|
|
declare void @nullary()
|
2015-08-25 05:59:51 +08:00
|
|
|
|
2015-08-25 06:07:33 +08:00
|
|
|
; CHECK-LABEL: call_nullary:
|
2015-08-25 05:59:51 +08:00
|
|
|
; CHECK-NEXT: (call @foo)
|
|
|
|
; CHECK-NEXT: (return)
|
2015-08-25 06:07:33 +08:00
|
|
|
define void @call_nullary() {
|
|
|
|
call void @nullary()
|
2015-08-25 05:59:51 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
; tail call
|
|
|
|
; multiple args
|
|
|
|
; interesting returns (int, float, struct, multiple)
|
|
|
|
; vararg
|