mirror of
https://github.com/status-im/EIPs.git
synced 2025-02-24 04:38:29 +00:00
EIP-145: Add more test cases
This commit is contained in:
parent
ea084caabd
commit
49e86ff026
@ -151,6 +151,13 @@ The newly introduced instructions have no effect on bytecode created in the past
|
||||
---
|
||||
0x0000000000000000000000000000000000000000000000000000000000000000
|
||||
```
|
||||
11. ```
|
||||
PUSH 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
PUSH 0x01
|
||||
SHL
|
||||
---
|
||||
0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe
|
||||
```
|
||||
|
||||
|
||||
### `SHR` (logical shift right)
|
||||
@ -326,6 +333,27 @@ The newly introduced instructions have no effect on bytecode created in the past
|
||||
---
|
||||
0x000000000000000000000000000000000000000000000000000000000000007f
|
||||
```
|
||||
14. ```
|
||||
PUSH 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
PUSH 0xfe
|
||||
SAR
|
||||
---
|
||||
0x0000000000000000000000000000000000000000000000000000000000000001
|
||||
```
|
||||
15. ```
|
||||
PUSH 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
PUSH 0xff
|
||||
SAR
|
||||
---
|
||||
0x0000000000000000000000000000000000000000000000000000000000000000
|
||||
```
|
||||
16. ```
|
||||
PUSH 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
PUSH 0x100
|
||||
SAR
|
||||
---
|
||||
0x0000000000000000000000000000000000000000000000000000000000000000
|
||||
```
|
||||
|
||||
|
||||
## Implementation
|
||||
|
Loading…
x
Reference in New Issue
Block a user