diff options
Diffstat (limited to 'src/shared-validator.cc')
-rw-r--r-- | src/shared-validator.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/shared-validator.cc b/src/shared-validator.cc index 3f970276..ab2f17fe 100644 --- a/src/shared-validator.cc +++ b/src/shared-validator.cc @@ -1077,6 +1077,19 @@ Result SharedValidator::OnSimdLaneOp(const Location& loc, return result; } +Result SharedValidator::OnSimdLoadLane(const Location& loc, + Opcode opcode, + Address alignment, + uint64_t value) { + Result result = Result::Ok; + MemoryType mt; + expr_loc_ = &loc; + result |= CheckMemoryIndex(Var(0, loc), &mt); + result |= CheckAlign(loc, alignment, opcode.GetMemorySize()); + result |= typechecker_.OnSimdLoadLane(opcode, mt.limits, value); + return result; +} + Result SharedValidator::OnSimdShuffleOp(const Location& loc, Opcode opcode, v128 value) { |