summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2017-09-06 14:13:29 -0700
committerGitHub <noreply@github.com>2017-09-06 14:13:29 -0700
commitd2a401d27ef3592638e0e7689eebed317966334a (patch)
tree13f627f7cd3aaeb20ac1708ad1bf244bf7ec07c4 /src/passes/Print.cpp
parent192b59a8bc8e5376ca120dc592d5abad7c654230 (diff)
downloadbinaryen-d2a401d27ef3592638e0e7689eebed317966334a.tar.gz
binaryen-d2a401d27ef3592638e0e7689eebed317966334a.tar.bz2
binaryen-d2a401d27ef3592638e0e7689eebed317966334a.zip
Add support for sign-extension operators from threading proposal (#1167)
These are not atomic operations, but are added with the atomic operations to keep from having to define atomic versions of all the sign-extending loads (an atomic zero-extending load + signext operation can be used instead).
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 3c538a40e..04b649ff6 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -474,6 +474,11 @@ struct PrintSExpression : public Visitor<PrintSExpression> {
case DemoteFloat64: o << "f32.demote/f64"; break;
case ReinterpretInt32: o << "f32.reinterpret/i32"; break;
case ReinterpretInt64: o << "f64.reinterpret/i64"; break;
+ case ExtendS8Int32: o << "i32.extend8_s"; break;
+ case ExtendS16Int32: o << "i32.extend16_s"; break;
+ case ExtendS8Int64: o << "i64.extend8_s"; break;
+ case ExtendS16Int64: o << "i64.extend16_s"; break;
+ case ExtendS32Int64: o << "i64.extend32_s"; break;
default: abort();
}
incIndent();