Update tests.

This commit is contained in:
Daniel Kirchner 2022-03-04 15:11:36 +01:00
parent d5b2d94cb7
commit f9706fd425
8 changed files with 10 additions and 11 deletions

View File

@ -13,7 +13,7 @@ object "RunsTest1" {
object "Runtime" { object "Runtime" {
code { code {
{ {
sstore(0, 0xabc1234500000000000000000000000000000000000000000000000000000000) sstore(0, shl(224, 0xabc12345))
} }
} }
} }
@ -21,7 +21,7 @@ object "RunsTest1" {
Binary representation: Binary representation:
602580600c6000396000f3fe7fabc123450000000000000000000000000000000000000000000000000000000060005500 600c80600c6000396000f3fe63abc1234560e01b60005500
Text representation: Text representation:
/* "yul_optimize_runs/input.yul":106:125 */ /* "yul_optimize_runs/input.yul":106:125 */
@ -40,8 +40,7 @@ Text representation:
stop stop
sub_0: assembly { sub_0: assembly {
/* "yul_optimize_runs/input.yul":237:257 */ shl(0xe0, 0xabc12345)
0xabc1234500000000000000000000000000000000000000000000000000000000
/* "yul_optimize_runs/input.yul":277:278 */ /* "yul_optimize_runs/input.yul":277:278 */
0x00 0x00
/* "yul_optimize_runs/input.yul":270:288 */ /* "yul_optimize_runs/input.yul":270:288 */

View File

@ -26,6 +26,6 @@ contract Main {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f(uint256): 0x34 -> 0x46bddb1178e94d7f2892ff5f366840eb658911794f2c3a44c450aa2c505186c1 // f(uint256): 0x34 -> 0x46bddb1178e94d7f2892ff5f366840eb658911794f2c3a44c450aa2c505186c1
// gas irOptimized: 113598 // gas irOptimized: 113613
// gas legacy: 126596 // gas legacy: 126596
// gas legacyOptimized: 113823 // gas legacyOptimized: 113823

View File

@ -26,6 +26,6 @@ contract Creator {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f(uint256,address[]): 7, 0x40, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 -> 7, 8 // f(uint256,address[]): 7, 0x40, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 -> 7, 8
// gas irOptimized: 443960 // gas irOptimized: 443989
// gas legacy: 590683 // gas legacy: 590683
// gas legacyOptimized: 448326 // gas legacyOptimized: 448326

View File

@ -26,6 +26,6 @@ contract Creator {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f(uint256,bytes): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" -> 7, "h" // f(uint256,bytes): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" -> 7, "h"
// gas irOptimized: 300804 // gas irOptimized: 300837
// gas legacy: 428917 // gas legacy: 428917
// gas legacyOptimized: 298128 // gas legacyOptimized: 298128

View File

@ -17,7 +17,7 @@ contract D {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(): 2 -> // constructor(): 2 ->
// gas irOptimized: 203967 // gas irOptimized: 203982
// gas legacy: 245842 // gas legacy: 245842
// gas legacyOptimized: 195676 // gas legacyOptimized: 195676
// f() -> 2 // f() -> 2

View File

@ -18,7 +18,7 @@ contract D {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(): 2 -> // constructor(): 2 ->
// gas irOptimized: 204130 // gas irOptimized: 204145
// gas legacy: 246202 // gas legacy: 246202
// gas legacyOptimized: 195914 // gas legacyOptimized: 195914
// f() -> 2 // f() -> 2

View File

@ -42,7 +42,7 @@ contract Main {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(), 22 wei -> // constructor(), 22 wei ->
// gas irOptimized: 284287 // gas irOptimized: 284321
// gas legacy: 402045 // gas legacy: 402045
// gas legacyOptimized: 266772 // gas legacyOptimized: 266772
// getFlag() -> true // getFlag() -> true

View File

@ -22,6 +22,6 @@ contract A {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f(), 10 ether -> 3007, 3008, 3009 // f(), 10 ether -> 3007, 3008, 3009
// gas irOptimized: 272413 // gas irOptimized: 272467
// gas legacy: 422501 // gas legacy: 422501
// gas legacyOptimized: 287472 // gas legacyOptimized: 287472