Browse Source

[PATCH 083/188] adding tests for constant instructions

From f6a5d3f6b438958811cad0c943bdde53ced2fe2e Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <[email protected]>
Date: Mon, 9 Mar 2020 11:09:58 -0400

git-svn-id: branches/wasm@46079 -
nickysn 5 years ago
parent
commit
dc4ceed0bb

+ 8 - 0
.gitattributes

@@ -18982,6 +18982,14 @@ 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/testscan/import1.wat svneol=native#text/plain
+utils/wasmbin/testscan/inst_const_f32.wat svneol=native#text/plain
+utils/wasmbin/testscan/inst_const_f32_neg.wat svneol=native#text/plain
+utils/wasmbin/testscan/inst_const_f64.wat svneol=native#text/plain
+utils/wasmbin/testscan/inst_const_f64_neg.wat svneol=native#text/plain
+utils/wasmbin/testscan/inst_const_i32.wat svneol=native#text/plain
+utils/wasmbin/testscan/inst_const_i32_neg.wat svneol=native#text/plain
+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/wasmbin.pas svneol=native#text/plain
 utils/wasmbin/wasmbincode.pas svneol=native#text/plain
 utils/wasmbin/wasmbindebug.pas svneol=native#text/plain

+ 5 - 0
utils/wasmbin/testscan/inst_const_f32.wat

@@ -0,0 +1,5 @@
+(module
+  (func $add (result f32)
+    f32.const 13
+  )
+)

+ 5 - 0
utils/wasmbin/testscan/inst_const_f32_neg.wat

@@ -0,0 +1,5 @@
+(module
+  (func $add (result f32)
+    f32.const -13
+  )
+)

+ 5 - 0
utils/wasmbin/testscan/inst_const_f64.wat

@@ -0,0 +1,5 @@
+(module
+  (func $add (result f64)
+    f64.const 13
+  )
+)

+ 5 - 0
utils/wasmbin/testscan/inst_const_f64_neg.wat

@@ -0,0 +1,5 @@
+(module
+  (func $add (result f64)
+    f64.const -13
+  )
+)

+ 5 - 0
utils/wasmbin/testscan/inst_const_i32.wat

@@ -0,0 +1,5 @@
+(module
+  (func $add (result i32)
+    i32.const 13
+  )
+)

+ 5 - 0
utils/wasmbin/testscan/inst_const_i32_neg.wat

@@ -0,0 +1,5 @@
+(module
+  (func $add (result i32)
+    i32.const -13
+  )
+)

+ 5 - 0
utils/wasmbin/testscan/inst_const_i64.wat

@@ -0,0 +1,5 @@
+(module
+  (func $add (result i64)
+    i64.const 13
+  )
+)

+ 5 - 0
utils/wasmbin/testscan/inst_const_i64_neg.wat

@@ -0,0 +1,5 @@
+(module
+  (func $add (result i64)
+    i64.const -13
+  )
+)