summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wasm.h4
-rw-r--r--test/emcc_hello_world.wast12
2 files changed, 9 insertions, 7 deletions
diff --git a/src/wasm.h b/src/wasm.h
index a978e71ca..45c557d7b 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -567,7 +567,9 @@ public:
Expression *value;
std::ostream& print(std::ostream &o, unsigned indent) override {
- printOpening(o, "unary ");
+ o << '(';
+ prepareColor(o);
+ printBasicType(o, type) << '.';
switch (op) {
case Clz: o << "clz"; break;
case Neg: o << "neg"; break;
diff --git a/test/emcc_hello_world.wast b/test/emcc_hello_world.wast
index 5b13cc418..6d14248f5 100644
--- a/test/emcc_hello_world.wast
+++ b/test/emcc_hello_world.wast
@@ -26494,14 +26494,14 @@
)
)
(set_local $$49
- (unary clz
+ (i32.clz
(get_local $$d_sroa_1_4_extract_trunc)
)
)
(set_local $$51
(i32.sub
(get_local $$49)
- (unary clz
+ (i32.clz
(get_local $$n_sroa_1_4_extract_trunc)
)
)
@@ -26637,14 +26637,14 @@
)
(block
(set_local $$117
- (unary clz
+ (i32.clz
(get_local $$d_sroa_1_4_extract_trunc)
)
)
(set_local $$119
(i32.sub
(get_local $$117)
- (unary clz
+ (i32.clz
(get_local $$n_sroa_1_4_extract_trunc)
)
)
@@ -26805,7 +26805,7 @@
(block
(set_local $$86
(i32.add
- (unary clz
+ (i32.clz
(get_local $$d_sroa_0_0_extract_trunc)
)
(i32.const 33)
@@ -26814,7 +26814,7 @@
(set_local $$88
(i32.sub
(get_local $$86)
- (unary clz
+ (i32.clz
(get_local $$n_sroa_1_4_extract_trunc)
)
)