aboutsummaryrefslogtreecommitdiffstats
path: root/test/compilationTests/milestonetracker
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-07-09 21:04:27 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-08-02 20:37:13 +0800
commit9b8a05ebfb34b0c4062cc6ab824b7281066424a6 (patch)
tree6e59dd641229cdd1803d17c851e7255030eff1f9 /test/compilationTests/milestonetracker
parented3cb327ea9a09e939ddfc88743f04bf5901fa8c (diff)
downloaddexon-solidity-9b8a05ebfb34b0c4062cc6ab824b7281066424a6.tar.gz
dexon-solidity-9b8a05ebfb34b0c4062cc6ab824b7281066424a6.tar.zst
dexon-solidity-9b8a05ebfb34b0c4062cc6ab824b7281066424a6.zip
Update tests to remove support for loose assembly
Diffstat (limited to 'test/compilationTests/milestonetracker')
-rw-r--r--test/compilationTests/milestonetracker/RLP.sol9
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)
}
}