Browse Source

[PATCH 115/188] adding a test for if-instruction

From e9ebae2a690e25eeb71f950e11a0ba47883c0724 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <[email protected]>
Date: Wed, 18 Mar 2020 13:20:21 -0400

git-svn-id: branches/wasm@46111 -
nickysn 5 years ago
parent
commit
2dda2565f2
2 changed files with 9 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 8 0
      utils/wasmbin/testscan/inst_if_value.wat

+ 1 - 0
.gitattributes

@@ -18996,6 +18996,7 @@ utils/wasmbin/testscan/inst_const_i64.wat svneol=native#text/plain
 utils/wasmbin/testscan/inst_const_i64_neg.wat svneol=native#text/plain
 utils/wasmbin/testscan/inst_const_i64_neg_hex.wat svneol=native#text/plain
 utils/wasmbin/testscan/inst_const_i64_pos.wat svneol=native#text/plain
+utils/wasmbin/testscan/inst_if_value.wat svneol=native#text/plain
 utils/wasmbin/testscan/inst_unreachable.wat svneol=native#text/plain
 utils/wasmbin/wasmbin.pas svneol=native#text/plain
 utils/wasmbin/wasmbincode.pas svneol=native#text/plain

+ 8 - 0
utils/wasmbin/testscan/inst_if_value.wat

@@ -0,0 +1,8 @@
+(module
+  (func (result i32)
+    i32.const 0
+    if (result i32)
+      i32.const 1
+    else
+      i32.const 2
+    end))