[WebAssembly] Implement eliminateCallFramePseudo
[oota-llvm.git] / test / CodeGen / WebAssembly / userstack.ll
index 855eaa00a4a768ea1256d83f0f7c0acc2436294b..6e01e36cf9fa4761dc0913f7d447274a7f985b06 100644 (file)
@@ -72,4 +72,10 @@ define void @allocarray() {
  ret void
 }
 
+define void @dynamic_alloca(i32 %alloc) {
+ ; TODO: Support frame pointers
+ ;%r = alloca i32, i32 %alloc
+ ;store i32 0, i32* %r
+ ret void
+}
 ; TODO: test aligned alloc