Browse Source

[PATCH 072/188] additional test

From 1fa603ea8252b02498eb206f5eec195e2ee64b6e Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <[email protected]>
Date: Thu, 5 Mar 2020 09:53:04 -0500

git-svn-id: branches/wasm@46068 -
nickysn 5 years ago
parent
commit
5c02ead33c
3 changed files with 32 additions and 0 deletions
  1. 2 0
      .gitattributes
  2. 13 0
      utils/wasmbin/testscan/asmsym2.wat
  3. 17 0
      utils/wasmbin/testscan/asmsym3.wat

+ 2 - 0
.gitattributes

@@ -18979,6 +18979,8 @@ utils/wasmbin/README.md svneol=native#text/plain
 utils/wasmbin/lebutils.pas svneol=native#text/plain
 utils/wasmbin/parseutils.pas svneol=native#text/plain
 utils/wasmbin/testscan/asmsym1.wat svneol=native#text/plain
+utils/wasmbin/testscan/asmsym2.wat svneol=native#text/plain
+utils/wasmbin/testscan/asmsym3.wat svneol=native#text/plain
 utils/wasmbin/wasmbin.pas svneol=native#text/plain
 utils/wasmbin/wasmbincode.pas svneol=native#text/plain
 utils/wasmbin/wasmbindebug.pas svneol=native#text/plain

+ 13 - 0
utils/wasmbin/testscan/asmsym2.wat

@@ -0,0 +1,13 @@
+(module
+  (func $anycall (param $i i32)
+    unreachable
+  )
+
+  ;;.name hello
+  ;;.forhost
+  (func $add (param $lhs i32) (param $rhs i32) (result i32)
+    get_local $lhs
+    get_local $rhs
+    i32.add)
+  (export "add" (func $add))
+)

+ 17 - 0
utils/wasmbin/testscan/asmsym3.wat

@@ -0,0 +1,17 @@
+(module
+  ;;.local
+  ;;.undef
+  (func $anycall (param $i i32)
+    unreachable
+  )
+
+  ;;.name hello
+  ;;.forhost
+  (func $add (param $lhs i32) (param $rhs i32) (result i32)
+    get_local $lhs
+    call $anycall
+    get_local $lhs
+    get_local $rhs
+    i32.add)
+  (export "add" (func $add))
+)