diff options
author | Christian Parpart <christian@ethereum.org> | 2018-07-09 21:04:27 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-08-02 20:37:13 +0800 |
commit | 9b8a05ebfb34b0c4062cc6ab824b7281066424a6 (patch) | |
tree | 6e59dd641229cdd1803d17c851e7255030eff1f9 /test/compilationTests | |
parent | ed3cb327ea9a09e939ddfc88743f04bf5901fa8c (diff) | |
download | dexon-solidity-9b8a05ebfb34b0c4062cc6ab824b7281066424a6.tar dexon-solidity-9b8a05ebfb34b0c4062cc6ab824b7281066424a6.tar.gz dexon-solidity-9b8a05ebfb34b0c4062cc6ab824b7281066424a6.tar.bz2 dexon-solidity-9b8a05ebfb34b0c4062cc6ab824b7281066424a6.tar.lz dexon-solidity-9b8a05ebfb34b0c4062cc6ab824b7281066424a6.tar.xz dexon-solidity-9b8a05ebfb34b0c4062cc6ab824b7281066424a6.tar.zst dexon-solidity-9b8a05ebfb34b0c4062cc6ab824b7281066424a6.zip |
Update tests to remove support for loose assembly
Diffstat (limited to 'test/compilationTests')
-rw-r--r-- | test/compilationTests/milestonetracker/RLP.sol | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/compilationTests/milestonetracker/RLP.sol b/test/compilationTests/milestonetracker/RLP.sol index e261bf23..e1f44457 100644 --- a/test/compilationTests/milestonetracker/RLP.sol +++ b/test/compilationTests/milestonetracker/RLP.sol @@ -381,19 +381,16 @@ library RLP { // we can write entire words, and just overwrite any excess. assembly { { - let i := 0 // Start at arr + 0x20 let words := div(add(btsLen, 31), 32) let rOffset := btsPtr let wOffset := add(tgt, 0x20) - tag_loop: - jumpi(end, eq(i, words)) + + // Start at arr + 0x20 + for { let i := 0 } not(eq(i, words)) { i := add(i, 1) } { let offset := mul(i, 0x20) mstore(add(wOffset, offset), mload(add(rOffset, offset))) - i := add(i, 1) } - jump(tag_loop) - end: mstore(add(tgt, add(0x20, mload(tgt))), 0) } } |