aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/rematerialiser/large_constant.yul
blob: 9c7c66f146ef5d34f0d2651e038de21a6b337562 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{
    // Constants cost depending on their magnitude.
    // Do not rematerialize large constants.
    let a := 0xffffffffffffffffffffff
    mstore(a, a)
}
// ----
// rematerialiser
// {
//     let a := 0xffffffffffffffffffffff
//     mstore(a, a)
// }