summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-03-20 16:31:16 -0700
committerGitHub <noreply@github.com>2020-03-20 16:31:16 -0700
commit03ae7fcbfc5cedefd25c2414616cb1d3f77ab51b (patch)
tree17f6a9148ffd659f870dfe5745383fb1507e4d42 /src/passes/Print.cpp
parent39fda77da51f83b200fc63bbfbc4dd2ccbfc2388 (diff)
downloadbinaryen-03ae7fcbfc5cedefd25c2414616cb1d3f77ab51b.tar.gz
binaryen-03ae7fcbfc5cedefd25c2414616cb1d3f77ab51b.tar.bz2
binaryen-03ae7fcbfc5cedefd25c2414616cb1d3f77ab51b.zip
SIMD integer abs and bitmask instructions (#2703)
Adds full support for the {i8x16,i16x8,i32x4}.abs instructions merged to the SIMD proposal in https://github.com/WebAssembly/simd/pull/128 as well as the {i8x16,i16x8,i32x4}.bitmask instructions proposed in https://github.com/WebAssembly/simd/pull/201.
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 2a483efd3..daa7e7ac6 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -717,6 +717,9 @@ struct PrintExpressionContents
case NotVec128:
o << "v128.not";
break;
+ case AbsVecI8x16:
+ o << "i8x16.abs";
+ break;
case NegVecI8x16:
o << "i8x16.neg";
break;
@@ -726,6 +729,12 @@ struct PrintExpressionContents
case AllTrueVecI8x16:
o << "i8x16.all_true";
break;
+ case BitmaskVecI8x16:
+ o << "i8x16.bitmask";
+ break;
+ case AbsVecI16x8:
+ o << "i16x8.abs";
+ break;
case NegVecI16x8:
o << "i16x8.neg";
break;
@@ -735,6 +744,12 @@ struct PrintExpressionContents
case AllTrueVecI16x8:
o << "i16x8.all_true";
break;
+ case BitmaskVecI16x8:
+ o << "i16x8.bitmask";
+ break;
+ case AbsVecI32x4:
+ o << "i32x4.abs";
+ break;
case NegVecI32x4:
o << "i32x4.neg";
break;
@@ -744,6 +759,9 @@ struct PrintExpressionContents
case AllTrueVecI32x4:
o << "i32x4.all_true";
break;
+ case BitmaskVecI32x4:
+ o << "i32x4.bitmask";
+ break;
case NegVecI64x2:
o << "i64x2.neg";
break;