mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:15:09 +00:00
LibWasm: Allow overflow in normal 64-bit arithmetic instructions
This commit is contained in:
parent
c4d4c657d0
commit
5636f8143d
1 changed files with 3 additions and 3 deletions
|
@ -916,11 +916,11 @@ void BytecodeInterpreter::interpret(Configuration& configuration, InstructionPoi
|
|||
case Instructions::i64_popcnt.value():
|
||||
UNARY_NUMERIC_OPERATION(i64, __builtin_popcountll);
|
||||
case Instructions::i64_add.value():
|
||||
OVF_CHECKED_BINARY_NUMERIC_OPERATION(i64, +, i64);
|
||||
BINARY_NUMERIC_OPERATION(i64, +, i64);
|
||||
case Instructions::i64_sub.value():
|
||||
OVF_CHECKED_BINARY_NUMERIC_OPERATION(i64, -, i64);
|
||||
BINARY_NUMERIC_OPERATION(i64, -, i64);
|
||||
case Instructions::i64_mul.value():
|
||||
OVF_CHECKED_BINARY_NUMERIC_OPERATION(i64, *, i64);
|
||||
BINARY_NUMERIC_OPERATION(i64, *, i64);
|
||||
case Instructions::i64_divs.value():
|
||||
OVF_CHECKED_BINARY_NUMERIC_OPERATION(i64, /, i64, TRAP_IF_NOT(rhs.value() != 0));
|
||||
case Instructions::i64_divu.value():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue