Skip to content

Commit 74b3267

Browse files
committed
eof: Update yulInterpreterTests tests
1 parent 33cc8f3 commit 74b3267

16 files changed

+24
-0
lines changed

test/libyul/yulInterpreterTests/and_create.yul

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
let b := and(u160max, create(0, u160max, 0))
55
mstore(0, eq(a, b))
66
}
7+
// ====
8+
// bytecodeFormat: legacy
79
// ----
810
// Trace:
911
// CREATE(0, 0, 0)

test/libyul/yulInterpreterTests/and_create2.yul

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
}
77
// ====
88
// EVMVersion: >=constantinople
9+
// bytecodeFormat: legacy
910
// ----
1011
// Trace:
1112
// CREATE2(0, 0, 0, 0)

test/libyul/yulInterpreterTests/create2.yul

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
}
66
// ====
77
// EVMVersion: >=constantinople
8+
// bytecodeFormat: legacy
89
// ----
910
// Trace:
1011
// CREATE2(0, 0, 32, 32)

test/libyul/yulInterpreterTests/datacopy.yul

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ object "main"
88
}
99
object "sub" { code { sstore(0, 1) } }
1010
}
11+
// ====
12+
// bytecodeFormat: legacy
1113
// ----
1214
// Trace:
1315
// Memory dump:

test/libyul/yulInterpreterTests/dataoffset.yul

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ object "main"
66
}
77
object "sub" { code { sstore(0, 1) } }
88
}
9+
// ====
10+
// bytecodeFormat: legacy
911
// ----
1012
// Trace:
1113
// Memory dump:

test/libyul/yulInterpreterTests/datasize.yul

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ object "main"
66
}
77
object "sub" { code { sstore(0, 1) } }
88
}
9+
// ====
10+
// bytecodeFormat: legacy
911
// ----
1012
// Trace:
1113
// Memory dump:

test/libyul/yulInterpreterTests/external_call_to_self.yul

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
}
1212
// ====
1313
// simulateExternalCall: true
14+
// bytecodeFormat: legacy
1415
// ----
1516
// Trace:
1617
// CALL(153, 0x11111111, 0, 64, 32, 256, 32)

test/libyul/yulInterpreterTests/external_call_unexecuted.yul

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
let x := call(gas(), 0x45, 0x5, 0, 0x20, 0x30, 0x20)
33
sstore(0x64, x)
44
}
5+
// ====
6+
// bytecodeFormat: legacy
57
// ----
68
// Trace:
79
// CALL(153, 69, 5, 0, 32, 48, 32)

test/libyul/yulInterpreterTests/external_callcode_unexecuted.yul

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
let x := callcode(gas(), 0x45, 0x5, 0, 0x20, 0x30, 0x20)
33
sstore(100, x)
44
}
5+
// ====
6+
// bytecodeFormat: legacy
57
// ----
68
// Trace:
79
// CALLCODE(153, 69, 5, 0, 32, 48, 32)

test/libyul/yulInterpreterTests/external_delegatecall_unexecuted.yul

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
let x := delegatecall(gas(), 0x45, 0, 0x20, 0x30, 0x20)
33
sstore(100, x)
44
}
5+
// ====
6+
// bytecodeFormat: legacy
57
// ----
68
// Trace:
79
// DELEGATECALL(153, 69, 0, 32, 48, 32)

test/libyul/yulInterpreterTests/external_staticcall_unexecuted.yul

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
}
55
// ====
66
// EVMVersion: >=byzantium
7+
// bytecodeFormat: legacy
78
// ----
89
// Trace:
910
// STATICCALL(153, 69, 0, 32, 48, 32)

test/libyul/yulInterpreterTests/long_obect_name.yul

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ object "t" {
1313
}
1414
}
1515
}
16+
// ====
17+
// bytecodeFormat: legacy
1618
// ----
1719
// Trace:
1820
// Memory dump:

test/libyul/yulInterpreterTests/pop_byte_shr_call.yul

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
}
44
// ====
55
// EVMVersion: >=constantinople
6+
// bytecodeFormat: legacy
67
// ----
78
// Trace:
89
// CALL(0, 0, 0, 0, 0, 0, 0)

test/libyul/yulInterpreterTests/side_effect_free.yul

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
}
1515
// ====
1616
// EVMVersion: >=constantinople
17+
// bytecodeFormat: legacy
1718
// ----
1819
// Trace:
1920
// Memory dump:

test/libyul/yulInterpreterTests/zero_length_reads.yul

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
}
1919
// ====
2020
// EVMVersion: >=constantinople
21+
// bytecodeFormat: legacy
2122
// ----
2223
// Trace:
2324
// RETURNDATACOPY(0, 1, 0)

test/libyul/yulInterpreterTests/zero_length_reads_and_revert.yul

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
}
1919
// ====
2020
// EVMVersion: >=constantinople
21+
// bytecodeFormat: legacy
2122
// ----
2223
// Trace:
2324
// RETURNDATACOPY(0, 1, 0)

0 commit comments

Comments
 (0)