Rename drop to i64.drop in WasmDialect

Also properly implement support for both i32.drop and i64.drop in BinaryTransform, TextTransform, and YulInterpreter
This commit is contained in:
Alex Beregszaszi
2020-07-06 15:47:17 +01:00
parent 375cb09341
commit 60d4b1e8cc
5 changed files with 10 additions and 6 deletions
@@ -93,7 +93,7 @@ u256 EwasmBuiltinInterpreter::evalBuiltin(YulString _fun, vector<u256> const& _a
);
return 0;
}
else if (_fun == "drop"_yulstring || _fun == "nop"_yulstring)
else if (_fun == "i32.drop"_yulstring || _fun == "i64.drop"_yulstring || _fun == "nop"_yulstring)
return {};
else if (_fun == "i32.wrap_i64"_yulstring)
return arg.at(0) & uint32_t(-1);