BNOT instruction [Delivers #81700198]

This commit is contained in:
Paweł Bylica 2014-10-30 11:44:31 +01:00
parent e4a77c1f69
commit dd75da2d3a
3 changed files with 19 additions and 7 deletions

View file

@ -0,0 +1 @@
6201e2406000546000530960005460206000f2

View file

@ -0,0 +1,14 @@
(asm
123456
0
MSTORE
0
MLOAD
BNOT
0
MSTORE
32
0
RETURN
)

View file

@ -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:
{ {