This repository has been archived by the owner on Oct 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
234 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -626,7 +626,7 @@ void VM::interpretCases() | |
} | ||
NEXT | ||
|
||
#if EVM_USE_BITSHIFT | ||
#if EIP_145 | ||
CASE(SHL) | ||
{ | ||
ON_OP(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,225 @@ | ||
{ | ||
let r := 0 | ||
0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | ||
256 | ||
shl | ||
=: r | ||
switch r | ||
case 0 { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
r := 0 | ||
2 | ||
1 | ||
shl | ||
=: r | ||
switch r | ||
case 4 { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
r := 0 | ||
0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | ||
1 | ||
shl | ||
=: r | ||
switch r | ||
case 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
r := 0 | ||
0x8000000000000000000000000000000000000000000000000000000000000000 | ||
1 | ||
shl | ||
=: r | ||
switch r | ||
case 0 { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
r := 0 | ||
3 | ||
255 | ||
shl | ||
=: r | ||
switch r | ||
case 0x8000000000000000000000000000000000000000000000000000000000000000 { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
r := 0 | ||
0xffffffff | ||
224 | ||
shl | ||
=: r | ||
switch r | ||
case 0xffffffff00000000000000000000000000000000000000000000000000000000 { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
r := 0 | ||
2 | ||
1 | ||
shr | ||
=: r | ||
switch r | ||
case 1 { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
r := 0 | ||
0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | ||
256 | ||
shr | ||
=: r | ||
switch r | ||
case 0 { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
r := 0 | ||
0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | ||
1 | ||
shr | ||
=: r | ||
switch r | ||
case 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
r := 0 | ||
0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | ||
1 | ||
shr | ||
=: r | ||
switch r | ||
case 0x3fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
r := 0 | ||
0x8000000000000000000000000000000000000000000000000000000000000000 | ||
1 | ||
shr | ||
=: r | ||
switch r | ||
case 0x4000000000000000000000000000000000000000000000000000000000000000 { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
r := 0 | ||
0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | ||
256 | ||
sar | ||
=: r | ||
switch r | ||
case 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | ||
256 | ||
sar | ||
=: r | ||
switch r | ||
case 0 { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
r := 0 | ||
0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | ||
1 | ||
sar | ||
=: r | ||
switch r | ||
case 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff { | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
|
||
/// | ||
r := 0 | ||
0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | ||
1 | ||
sar | ||
=: r | ||
switch r | ||
case 0x3fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff { | ||
stop | ||
} | ||
default { | ||
0 | ||
0 | ||
revert | ||
} | ||
} |