From d996a1e8fe83463042460d875828278d80cbc43b Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Tue, 3 Oct 2023 18:44:37 -0400 Subject: [PATCH] clarify a couple test cases --- tests/compiler/ir/test_optimize_ir.py | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/tests/compiler/ir/test_optimize_ir.py b/tests/compiler/ir/test_optimize_ir.py index 2057070a20..cb46ba238d 100644 --- a/tests/compiler/ir/test_optimize_ir.py +++ b/tests/compiler/ir/test_optimize_ir.py @@ -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, @@ -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], ), ]