summaryrefslogtreecommitdiff
path: root/src/wasm/literal.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2019-03-19 09:18:53 -0700
committerGitHub <noreply@github.com>2019-03-19 09:18:53 -0700
commit9e2559b789424ea1920c5e9c73b63a976390226c (patch)
tree67acda9f9737596c53200661901994adc24095f9 /src/wasm/literal.cpp
parentdd3873375ca7375b79105742b30fa03f9f8a0c24 (diff)
downloadbinaryen-9e2559b789424ea1920c5e9c73b63a976390226c.tar.gz
binaryen-9e2559b789424ea1920c5e9c73b63a976390226c.tar.bz2
binaryen-9e2559b789424ea1920c5e9c73b63a976390226c.zip
Update v128.const text formats (#1934)
Parse the formats allowed by the spec proposal and emit the i32x4 canonical format.
Diffstat (limited to 'src/wasm/literal.cpp')
-rw-r--r--src/wasm/literal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp
index bc45f5834..b374566d1 100644
--- a/src/wasm/literal.cpp
+++ b/src/wasm/literal.cpp
@@ -243,7 +243,7 @@ std::ostream& operator<<(std::ostream& o, Literal literal) {
case Type::i64: o << literal.i64; break;
case Type::f32: literal.printFloat(o, literal.getf32()); break;
case Type::f64: literal.printDouble(o, literal.getf64()); break;
- case Type::v128: o << "i32 "; literal.printVec128(o, literal.getv128()); break;
+ case Type::v128: o << "i32x4 "; literal.printVec128(o, literal.getv128()); break;
case Type::unreachable: WASM_UNREACHABLE();
}
restoreNormalColor(o);