diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-05-12 09:58:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 09:58:37 -0700 |
commit | 5930ada5bee7061d8063f2638cdb1cb25dce5292 (patch) | |
tree | b2386f4907ef5f3cd6b79bb9f07d1cc8f252968a /src/passes/Print.cpp | |
parent | a5a355747146d7725db7253478a028286dece715 (diff) | |
download | binaryen-5930ada5bee7061d8063f2638cdb1cb25dce5292.tar.gz binaryen-5930ada5bee7061d8063f2638cdb1cb25dce5292.tar.bz2 binaryen-5930ada5bee7061d8063f2638cdb1cb25dce5292.zip |
Implement pseudo-min/max SIMD instructions (#2847)
As specified in https://github.com/WebAssembly/simd/pull/122.
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 0839b3feb..3ed6edcb5 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -1337,6 +1337,12 @@ struct PrintExpressionContents case MaxVecF32x4: o << "f32x4.max"; break; + case PMinVecF32x4: + o << "f32x4.pmin"; + break; + case PMaxVecF32x4: + o << "f32x4.pmax"; + break; case AddVecF64x2: o << "f64x2.add"; break; @@ -1355,6 +1361,12 @@ struct PrintExpressionContents case MaxVecF64x2: o << "f64x2.max"; break; + case PMinVecF64x2: + o << "f64x2.pmin"; + break; + case PMaxVecF64x2: + o << "f64x2.pmax"; + break; case NarrowSVecI16x8ToVecI8x16: o << "i8x16.narrow_i16x8_s"; |