mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
BNOT instruction [Delivers #81700198]
This commit is contained in:
parent
e4a77c1f69
commit
dd75da2d3a
3 changed files with 19 additions and 7 deletions
1
evmcc/test/arith/arith_bnot.evm
Normal file
1
evmcc/test/arith/arith_bnot.evm
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
6201e2406000546000530960005460206000f2
|
||||||
14
evmcc/test/arith/arith_bnot.lll
Normal file
14
evmcc/test/arith/arith_bnot.lll
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
|
||||||
|
(asm
|
||||||
|
123456
|
||||||
|
0
|
||||||
|
MSTORE
|
||||||
|
0
|
||||||
|
MLOAD
|
||||||
|
BNOT
|
||||||
|
0
|
||||||
|
MSTORE
|
||||||
|
32
|
||||||
|
0
|
||||||
|
RETURN
|
||||||
|
)
|
||||||
|
|
@ -372,14 +372,11 @@ void Compiler::compileBasicBlock(BasicBlock& basicBlock, bytesConstRef bytecode,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*case Instruction::NEG:
|
case Instruction::BNOT:
|
||||||
{
|
{
|
||||||
auto top = stack.pop();
|
auto value = stack.pop();
|
||||||
auto zero = Constant::get(0);
|
auto ret = m_builder.CreateXor(value, llvm::APInt(256, -1, true), "bnot");
|
||||||
auto res = m_builder.CreateSub(zero, top);
|
}
|
||||||
stack.push(res);
|
|
||||||
break;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
case Instruction::LT:
|
case Instruction::LT:
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue