From dc4ceed0bbf97b821cc75aefd48db2d2683974c0 Mon Sep 17 00:00:00 2001 From: nickysn Date: Mon, 3 Aug 2020 13:00:14 +0000 Subject: [PATCH] [PATCH 083/188] adding tests for constant instructions From f6a5d3f6b438958811cad0c943bdde53ced2fe2e Mon Sep 17 00:00:00 2001 From: Dmitry Boyarintsev Date: Mon, 9 Mar 2020 11:09:58 -0400 git-svn-id: branches/wasm@46079 - --- .gitattributes | 8 ++++++++ utils/wasmbin/testscan/inst_const_f32.wat | 5 +++++ utils/wasmbin/testscan/inst_const_f32_neg.wat | 5 +++++ utils/wasmbin/testscan/inst_const_f64.wat | 5 +++++ utils/wasmbin/testscan/inst_const_f64_neg.wat | 5 +++++ utils/wasmbin/testscan/inst_const_i32.wat | 5 +++++ utils/wasmbin/testscan/inst_const_i32_neg.wat | 5 +++++ utils/wasmbin/testscan/inst_const_i64.wat | 5 +++++ utils/wasmbin/testscan/inst_const_i64_neg.wat | 5 +++++ 9 files changed, 48 insertions(+) create mode 100644 utils/wasmbin/testscan/inst_const_f32.wat create mode 100644 utils/wasmbin/testscan/inst_const_f32_neg.wat create mode 100644 utils/wasmbin/testscan/inst_const_f64.wat create mode 100644 utils/wasmbin/testscan/inst_const_f64_neg.wat create mode 100644 utils/wasmbin/testscan/inst_const_i32.wat create mode 100644 utils/wasmbin/testscan/inst_const_i32_neg.wat create mode 100644 utils/wasmbin/testscan/inst_const_i64.wat create mode 100644 utils/wasmbin/testscan/inst_const_i64_neg.wat diff --git a/.gitattributes b/.gitattributes index 74f1c30dee..319491e3de 100644 --- a/.gitattributes +++ b/.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 diff --git a/utils/wasmbin/testscan/inst_const_f32.wat b/utils/wasmbin/testscan/inst_const_f32.wat new file mode 100644 index 0000000000..9e3b630a1a --- /dev/null +++ b/utils/wasmbin/testscan/inst_const_f32.wat @@ -0,0 +1,5 @@ +(module + (func $add (result f32) + f32.const 13 + ) +) diff --git a/utils/wasmbin/testscan/inst_const_f32_neg.wat b/utils/wasmbin/testscan/inst_const_f32_neg.wat new file mode 100644 index 0000000000..e7089f549d --- /dev/null +++ b/utils/wasmbin/testscan/inst_const_f32_neg.wat @@ -0,0 +1,5 @@ +(module + (func $add (result f32) + f32.const -13 + ) +) diff --git a/utils/wasmbin/testscan/inst_const_f64.wat b/utils/wasmbin/testscan/inst_const_f64.wat new file mode 100644 index 0000000000..9863b5f34e --- /dev/null +++ b/utils/wasmbin/testscan/inst_const_f64.wat @@ -0,0 +1,5 @@ +(module + (func $add (result f64) + f64.const 13 + ) +) diff --git a/utils/wasmbin/testscan/inst_const_f64_neg.wat b/utils/wasmbin/testscan/inst_const_f64_neg.wat new file mode 100644 index 0000000000..0a2f0cf9ef --- /dev/null +++ b/utils/wasmbin/testscan/inst_const_f64_neg.wat @@ -0,0 +1,5 @@ +(module + (func $add (result f64) + f64.const -13 + ) +) diff --git a/utils/wasmbin/testscan/inst_const_i32.wat b/utils/wasmbin/testscan/inst_const_i32.wat new file mode 100644 index 0000000000..837d2cf6e5 --- /dev/null +++ b/utils/wasmbin/testscan/inst_const_i32.wat @@ -0,0 +1,5 @@ +(module + (func $add (result i32) + i32.const 13 + ) +) diff --git a/utils/wasmbin/testscan/inst_const_i32_neg.wat b/utils/wasmbin/testscan/inst_const_i32_neg.wat new file mode 100644 index 0000000000..934997d365 --- /dev/null +++ b/utils/wasmbin/testscan/inst_const_i32_neg.wat @@ -0,0 +1,5 @@ +(module + (func $add (result i32) + i32.const -13 + ) +) diff --git a/utils/wasmbin/testscan/inst_const_i64.wat b/utils/wasmbin/testscan/inst_const_i64.wat new file mode 100644 index 0000000000..9cc098d6e6 --- /dev/null +++ b/utils/wasmbin/testscan/inst_const_i64.wat @@ -0,0 +1,5 @@ +(module + (func $add (result i64) + i64.const 13 + ) +) diff --git a/utils/wasmbin/testscan/inst_const_i64_neg.wat b/utils/wasmbin/testscan/inst_const_i64_neg.wat new file mode 100644 index 0000000000..dcafd8c7d9 --- /dev/null +++ b/utils/wasmbin/testscan/inst_const_i64_neg.wat @@ -0,0 +1,5 @@ +(module + (func $add (result i64) + i64.const -13 + ) +)