diff options
author | chriseth <c@ethdev.com> | 2016-05-08 21:22:54 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-05-09 16:52:23 +0800 |
commit | a927efb1513e31cfa9130458b4ea40d89e283b17 (patch) | |
tree | cdf13fa91e02ebd9d0454b47f8f07fdf4eb877b0 /libevmasm/Instruction.cpp | |
parent | 9e36bdda8a9552f1885e0a63a85db588623b39b2 (diff) | |
download | dexon-solidity-a927efb1513e31cfa9130458b4ea40d89e283b17.tar.gz dexon-solidity-a927efb1513e31cfa9130458b4ea40d89e283b17.tar.zst dexon-solidity-a927efb1513e31cfa9130458b4ea40d89e283b17.zip |
Correctly use not/bnot/iszero.
A long time ago, some opcodes were renamed. Now we should only have
not (bitwise negation) and iszero (logical negation).
Diffstat (limited to 'libevmasm/Instruction.cpp')
-rw-r--r-- | libevmasm/Instruction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libevmasm/Instruction.cpp b/libevmasm/Instruction.cpp index d854dfec..2aaa6f1d 100644 --- a/libevmasm/Instruction.cpp +++ b/libevmasm/Instruction.cpp @@ -39,13 +39,13 @@ const std::map<std::string, Instruction> dev::solidity::c_instructions = { "MOD", Instruction::MOD }, { "SMOD", Instruction::SMOD }, { "EXP", Instruction::EXP }, - { "BNOT", Instruction::NOT }, + { "NOT", Instruction::NOT }, { "LT", Instruction::LT }, { "GT", Instruction::GT }, { "SLT", Instruction::SLT }, { "SGT", Instruction::SGT }, { "EQ", Instruction::EQ }, - { "NOT", Instruction::ISZERO }, + { "ISZERO", Instruction::ISZERO }, { "AND", Instruction::AND }, { "OR", Instruction::OR }, { "XOR", Instruction::XOR }, |