summaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2022-04-09 13:27:37 +0900
committerGitHub <noreply@github.com>2022-04-09 13:27:37 +0900
commit5d5e4654d0fd6165f7ddad88a20ce17ffa4caad6 (patch)
tree36670b7ea05adf9aa1989fac978090b234571da0 /src/js
parent094deb0b1d1def452cb784191004a5e2001c6a99 (diff)
downloadbinaryen-5d5e4654d0fd6165f7ddad88a20ce17ffa4caad6.tar.gz
binaryen-5d5e4654d0fd6165f7ddad88a20ce17ffa4caad6.tar.bz2
binaryen-5d5e4654d0fd6165f7ddad88a20ce17ffa4caad6.zip
[SIMD] Make swizzle's opcode name consistent (NFC) (#4585)
Other opcode ends with `Inxm` or `Fnxm` (where n and m are integers), while `i8x16.swizzle`'s opcode name doesn't have an `I` in there.
Diffstat (limited to 'src/js')
-rw-r--r--src/js/binaryen.js-post.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js
index 7dfeee26c..28f5b6258 100644
--- a/src/js/binaryen.js-post.js
+++ b/src/js/binaryen.js-post.js
@@ -530,7 +530,7 @@ function initializeConstants() {
'TruncSatZeroUVecF64x2ToVecI32x4',
'DemoteZeroVecF64x2ToVecF32x4',
'PromoteLowVecF32x4ToVecF64x2',
- 'SwizzleVec8x16',
+ 'SwizzleVecI8x16',
'RefIsNull',
'RefIsFunc',
'RefIsData',
@@ -1597,7 +1597,7 @@ function wrapModule(module, self = {}) {
return preserveStack(() => Module['_BinaryenSIMDShuffle'](module, left, right, i8sToStack(mask)));
},
'swizzle'(left, right) {
- return Module['_BinaryenBinary'](module, Module['SwizzleVec8x16'], left, right);
+ return Module['_BinaryenBinary'](module, Module['SwizzleVecI8x16'], left, right);
},
'splat'(value) {
return Module['_BinaryenUnary'](module, Module['SplatVecI8x16'], value);