summaryrefslogtreecommitdiff
path: root/test/unit/input
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-11-26 02:36:38 -0800
committerGitHub <noreply@github.com>2019-11-26 02:36:38 -0800
commit6e23f8e5f4d28eb2056d0b3636b8317b9f299bfc (patch)
tree86072ef1f11098c4c721602c833f4fa4ebcacede /test/unit/input
parent98ab07f9e471e713e7b00732a84e260aaaecc25f (diff)
downloadbinaryen-6e23f8e5f4d28eb2056d0b3636b8317b9f299bfc.tar.gz
binaryen-6e23f8e5f4d28eb2056d0b3636b8317b9f299bfc.tar.bz2
binaryen-6e23f8e5f4d28eb2056d0b3636b8317b9f299bfc.zip
Print only literal values when printing literals (#2469)
Current `<<` operator on `Literal` prints `[type].const` with it. But `[type].const` is rather an instruction than a literal itself, and printing it with the literals makes less sense when we later have literals whose type don't have `const` instructions (such as reference types). This patch - Makes `<<` operator on `Literal` print only its value - Makes wasm-shell's shell interface comply with the spec interpreter's printing format (`value : type`). - Prints wasm-shell's `[trap]` message to stderr These make all `fix_` routines for spec tests in check.py unnecessary.
Diffstat (limited to 'test/unit/input')
-rw-r--r--test/unit/input/asyncify-pure.txt34
1 files changed, 17 insertions, 17 deletions
diff --git a/test/unit/input/asyncify-pure.txt b/test/unit/input/asyncify-pure.txt
index 1f85db1f1..9032da174 100644
--- a/test/unit/input/asyncify-pure.txt
+++ b/test/unit/input/asyncify-pure.txt
@@ -1,17 +1,17 @@
-(i32.const 100)
-(i32.const 10)
-(i32.const 1)
-(i32.const 20)
-(i32.const 1000)
-(i32.const 2000)
-(i32.const 4000)
-(i32.const 200)
-(i32.const 300)
-(i32.const 400)
-(i32.const 1000)
-(i32.const 3000)
-(i32.const 4000)
-(i32.const 30)
-(i32.const 2)
-(i32.const 40)
-(i32.const 500)
+100 : i32
+10 : i32
+1 : i32
+20 : i32
+1000 : i32
+2000 : i32
+4000 : i32
+200 : i32
+300 : i32
+400 : i32
+1000 : i32
+3000 : i32
+4000 : i32
+30 : i32
+2 : i32
+40 : i32
+500 : i32