diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2018-12-13 17:40:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-13 17:40:27 -0800 |
commit | 3325a9cc203932e58b6e85dfefe5feb6e72839a4 (patch) | |
tree | 1d969ab30854fd773fdc615d799c9a9ed7e9c0be /src/tools/fuzzing.h | |
parent | 0fd96e6b07f0a0907737c0f44e55060e057c2bb9 (diff) | |
download | binaryen-3325a9cc203932e58b6e85dfefe5feb6e72839a4.tar.gz binaryen-3325a9cc203932e58b6e85dfefe5feb6e72839a4.tar.bz2 binaryen-3325a9cc203932e58b6e85dfefe5feb6e72839a4.zip |
SIMD (#1820)
Implement and test the following functionality for SIMD.
- Parsing and printing
- Assembling and disassembling
- Interpretation
- C API
- JS API
Diffstat (limited to 'src/tools/fuzzing.h')
-rw-r--r-- | src/tools/fuzzing.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h index dcb47529f..999325baa 100644 --- a/src/tools/fuzzing.h +++ b/src/tools/fuzzing.h @@ -1268,10 +1268,10 @@ private: } // tweak around special values if (oneIn(3)) { // +- 1 - value = value.add(LiteralUtils::makeLiteralFromInt32(upTo(3) - 1, type)); + value = value.add(Literal::makeFromInt32(upTo(3) - 1, type)); } if (oneIn(2)) { // flip sign - value = value.mul(LiteralUtils::makeLiteralFromInt32(-1, type)); + value = value.mul(Literal::makeFromInt32(-1, type)); } break; } @@ -1288,7 +1288,7 @@ private: } // maybe negative if (oneIn(2)) { - value = value.mul(LiteralUtils::makeLiteralFromInt32(-1, type)); + value = value.mul(Literal::makeFromInt32(-1, type)); } } } |