summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly/varargs.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/varargs.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/varargs.ll11
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/varargs.ll b/llvm/test/CodeGen/WebAssembly/varargs.ll
index c12264625c3..bece022823b 100644
--- a/llvm/test/CodeGen/WebAssembly/varargs.ll
+++ b/llvm/test/CodeGen/WebAssembly/varargs.ll
@@ -110,11 +110,16 @@ define void @caller_none() {
ret void
}
+; Test a varargs call with some actual arguments.
+; Note that the store of 2.0 is converted to an i64 store; this optimization
+; is not needed on WebAssembly, but there isn't currently a convenient hook for
+; disabling it.
+
; CHECK-LABEL: caller_some
+; CHECK: i32.store
+; CHECK: i64.store
define void @caller_some() {
- ; TODO: Fix interaction between register coalescer and reg stackifier,
- ; or disable coalescer.
- ;call void (...) @callee(i32 0, double 2.0)
+ call void (...) @callee(i32 0, double 2.0)
ret void
}
OpenPOWER on IntegriCloud