Fix sub-0 optimiser test

This commit is contained in:
Alex Beregszaszi 2016-11-30 11:18:33 +00:00
parent df4b405f9c
commit 9a6a5f219b

View File

@ -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
});
}