summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-stack.cpp
diff options
context:
space:
mode:
authorBrendan Dahl <brendan.dahl@gmail.com>2024-08-27 13:07:49 -0700
committerGitHub <noreply@github.com>2024-08-27 13:07:49 -0700
commite2ceaa58c10e9ee3e9eece42466243f5a8aff125 (patch)
tree3815a50a2394632b1dab7bf83e737f828771e76f /src/wasm/wasm-stack.cpp
parent52118e536238c10f6873390a6ca475a44350bc71 (diff)
downloadbinaryen-e2ceaa58c10e9ee3e9eece42466243f5a8aff125.tar.gz
binaryen-e2ceaa58c10e9ee3e9eece42466243f5a8aff125.tar.bz2
binaryen-e2ceaa58c10e9ee3e9eece42466243f5a8aff125.zip
Rename relaxed SIMD fma instructions to match spec. (#6876)
The instructions relaxed_fma and relaxed_fnma have been renamed to relaxed_madd and relaxed_nmadd. https://github.com/WebAssembly/relaxed-simd/blob/main/proposals/relaxed-simd/Overview.md#binary-format
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
-rw-r--r--src/wasm/wasm-stack.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/wasm/wasm-stack.cpp b/src/wasm/wasm-stack.cpp
index 59593ddde..140205b85 100644
--- a/src/wasm/wasm-stack.cpp
+++ b/src/wasm/wasm-stack.cpp
@@ -657,17 +657,17 @@ void BinaryInstWriter::visitSIMDTernary(SIMDTernary* curr) {
case LaneselectI64x2:
o << U32LEB(BinaryConsts::I64x2Laneselect);
break;
- case RelaxedFmaVecF32x4:
- o << U32LEB(BinaryConsts::F32x4RelaxedFma);
+ case RelaxedMaddVecF32x4:
+ o << U32LEB(BinaryConsts::F32x4RelaxedMadd);
break;
- case RelaxedFmsVecF32x4:
- o << U32LEB(BinaryConsts::F32x4RelaxedFms);
+ case RelaxedNmaddVecF32x4:
+ o << U32LEB(BinaryConsts::F32x4RelaxedNmadd);
break;
- case RelaxedFmaVecF64x2:
- o << U32LEB(BinaryConsts::F64x2RelaxedFma);
+ case RelaxedMaddVecF64x2:
+ o << U32LEB(BinaryConsts::F64x2RelaxedMadd);
break;
- case RelaxedFmsVecF64x2:
- o << U32LEB(BinaryConsts::F64x2RelaxedFms);
+ case RelaxedNmaddVecF64x2:
+ o << U32LEB(BinaryConsts::F64x2RelaxedNmadd);
break;
case DotI8x16I7x16AddSToVecI32x4:
o << U32LEB(BinaryConsts::I32x4DotI8x16I7x16AddS);