llvm-project/llvm/test/CodeGen/WebAssembly/call.ll

23 lines
473 B
LLVM
Raw Normal View History

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"
declare void @nullary()
2015-08-25 05:59:51 +08:00
; CHECK-LABEL: call_nullary:
2015-08-25 05:59:51 +08:00
; CHECK-NEXT: (call @foo)
; CHECK-NEXT: (return)
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