mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix sub-0 optimiser test
This commit is contained in:
parent
df4b405f9c
commit
9a6a5f219b
@ -1311,16 +1311,17 @@ BOOST_AUTO_TEST_CASE(cse_sub_zero)
|
||||
Instruction::DUP2,
|
||||
Instruction::SUB
|
||||
}, {
|
||||
u256(5)
|
||||
Instruction::DUP1
|
||||
});
|
||||
|
||||
checkCSE({
|
||||
Instruction::DUP2,
|
||||
Instruction::DUP1,
|
||||
u256(0),
|
||||
Instruction::SUB
|
||||
}, {
|
||||
Instruction::DUP2,
|
||||
u256(0),
|
||||
Instruction::DUP2,
|
||||
Instruction::SWAP1,
|
||||
Instruction::SUB
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user