mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests.
This commit is contained in:
@@ -57,8 +57,14 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// EVMVersion: >homestead
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// test_bytes() ->
|
||||
// gas irOptimized: 516922
|
||||
// gas legacy: 466763
|
||||
// gas legacyOptimized: 374537
|
||||
// test_uint256() ->
|
||||
// gas irOptimized: 712790
|
||||
// gas legacy: 634592
|
||||
// gas legacyOptimized: 499481
|
||||
|
||||
@@ -53,3 +53,6 @@ contract C {
|
||||
// f2() -> 0x20, 0xa0, 0x1, 0x60, 0x2, 0x3, "abc"
|
||||
// f3() -> 0x20, 0xa0, 0x1, 0x60, 0x2, 0x3, "abc"
|
||||
// f4() -> 0x20, 0x160, 0x1, 0x80, 0xc0, 0x2, 0x3, "abc", 0x7, 0x40, 0x2, 0x2, 0x3
|
||||
// gas irOptimized: 110858
|
||||
// gas legacy: 111328
|
||||
// gas legacyOptimized: 109206
|
||||
|
||||
+3
@@ -30,3 +30,6 @@ contract C is B {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// test() -> 77
|
||||
// gas irOptimized: 139834
|
||||
// gas legacy: 156573
|
||||
// gas legacyOptimized: 112983
|
||||
|
||||
+1
@@ -38,3 +38,4 @@ contract C is B {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// test() -> 5, 10
|
||||
// gas legacy: 100441
|
||||
|
||||
@@ -15,9 +15,12 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// EVMVersion: >homestead
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f(uint256[][1]): 32, 32, 0 -> true
|
||||
// f(uint256[][1]): 32, 32, 1, 42 -> true
|
||||
// f(uint256[][1]): 32, 32, 8, 421, 422, 423, 424, 425, 426, 427, 428 -> true
|
||||
// gas irOptimized: 227663
|
||||
// gas legacy: 144300
|
||||
// gas legacyOptimized: 124199
|
||||
|
||||
@@ -15,8 +15,14 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// EVMVersion: >homestead
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// h(uint256[2][]): 0x20, 3, 123, 124, 223, 224, 323, 324 -> 32, 256, 0x20, 3, 123, 124, 223, 224, 323, 324
|
||||
// gas irOptimized: 172714
|
||||
// gas legacy: 175929
|
||||
// gas legacyOptimized: 172506
|
||||
// i(uint256[2][2]): 123, 124, 223, 224 -> 32, 128, 123, 124, 223, 224
|
||||
// gas irOptimized: 107681
|
||||
// gas legacy: 109868
|
||||
// gas legacyOptimized: 107388
|
||||
|
||||
Reference in New Issue
Block a user