mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Test.
This commit is contained in:
parent
59db0f1537
commit
4480662a58
15
test/libyul/yulOptimizerTests/fullSuite/shift_signextend.yul
Normal file
15
test/libyul/yulOptimizerTests/fullSuite/shift_signextend.yul
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
let x := calldataload(0)
|
||||||
|
let a := shl(sub(256, 8), signextend(0, x))
|
||||||
|
sstore(0, a)
|
||||||
|
}
|
||||||
|
// ====
|
||||||
|
// EVMVersion: >=constantinople
|
||||||
|
// ----
|
||||||
|
// step: fullSuite
|
||||||
|
//
|
||||||
|
// {
|
||||||
|
// {
|
||||||
|
// sstore(0, shl(248, calldataload(0)))
|
||||||
|
// }
|
||||||
|
// }
|
Loading…
Reference in New Issue
Block a user