diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-08-03 13:48:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-03 13:48:10 -0700 |
commit | daa442b40f92ee5117c9c7c391171c3304abc67e (patch) | |
tree | d4533e9f8d3564e20bc6b1c006e74f4b32d3dcca /src/wasm-binary.h | |
parent | 79f2fe4eb4197b3f2a1f8ad0c3a34bf9c28149a1 (diff) | |
download | binaryen-daa442b40f92ee5117c9c7c391171c3304abc67e.tar.gz binaryen-daa442b40f92ee5117c9c7c391171c3304abc67e.tar.bz2 binaryen-daa442b40f92ee5117c9c7c391171c3304abc67e.zip |
Implement prototype v128.load{32,64}_zero instructions (#3011)
Specified in https://github.com/WebAssembly/simd/pull/237. Since these
are just prototypes necessary for benchmarking, this PR does not add
support for these instructions to the fuzzer or the C or JS APIs. This
PR also renumbers the QFMA instructions that previously used the
opcodes for these new instructions. The renumbering matches the
renumbering in V8 and LLVM.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index db93c86de..ba3b4038a 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -833,12 +833,12 @@ enum ASTNodes { I32x4ShrU = 0xad, I32x4Add = 0xae, I32x4Sub = 0xb1, - I32x4DotSVecI16x8 = 0xb4, I32x4Mul = 0xb5, I32x4MinS = 0xb6, I32x4MinU = 0xb7, I32x4MaxS = 0xb8, I32x4MaxU = 0xb9, + I32x4DotSVecI16x8 = 0xba, I64x2Neg = 0xc1, I64x2AnyTrue = 0xc2, @@ -888,8 +888,11 @@ enum ASTNodes { F32x4ConvertSI32x4 = 0xfa, F32x4ConvertUI32x4 = 0xfb, - F32x4QFMA = 0xfc, - F32x4QFMS = 0xfd, + V128Load32Zero = 0xfc, + V128Load64Zero = 0xfd, + + F32x4QFMA = 0xb4, + F32x4QFMS = 0xd4, F64x2QFMA = 0xfe, F64x2QFMS = 0xff, |