Skip to content

Commit

Permalink
clarify a couple test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Oct 3, 2023
1 parent cb71178 commit d996a1e
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions tests/compiler/ir/test_optimize_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def test_operator_set_values():
[
"seq",
["mstore", 0, ["mload", 32]],
["shr", 224, ["calldataload", 0]],
["sstore", 0, ["calldataload", 4]],
["mstore", 32, ["mload", 64]],
],
None,
Expand All @@ -359,23 +359,10 @@ def test_operator_set_values():
(
[
"seq",
[
"mstore",
115792089237316195423570985008687907853269984665640564039457584007913129639872,
["mload", 0],
], # 2**256-1-31-32
[
"mstore",
115792089237316195423570985008687907853269984665640564039457584007913129639904,
["mload", 32],
], # 2**256-1-31
],
[
"mcopy",
115792089237316195423570985008687907853269984665640564039457584007913129639872,
0,
64,
["mstore", 2**256 - 1 - 31 - 32, ["mload", 0]],
["mstore", 2**256 - 1 - 31, ["mload", 32]],
],
["mcopy", 2**256 - 1 - 31 - 32, 0, 64],
),
]

Expand Down

0 comments on commit d996a1e

Please sign in to comment.