Skip to content

Commit

Permalink
eof: Update yulInterpreterTests tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rodiazet committed Dec 19, 2024
1 parent 3eb29e8 commit 4964479
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/libyul/yulInterpreterTests/and_create.yul
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
let b := and(u160max, create(0, u160max, 0))
mstore(0, eq(a, b))
}
// ====
// bytecodeFormat: legacy
// ----
// Trace:
// CREATE(0, 0, 0)
Expand Down
1 change: 1 addition & 0 deletions test/libyul/yulInterpreterTests/and_create2.yul
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
}
// ====
// EVMVersion: >=constantinople
// bytecodeFormat: legacy
// ----
// Trace:
// CREATE2(0, 0, 0, 0)
Expand Down
1 change: 1 addition & 0 deletions test/libyul/yulInterpreterTests/create2.yul
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
}
// ====
// EVMVersion: >=constantinople
// bytecodeFormat: legacy
// ----
// Trace:
// CREATE2(0, 0, 32, 32)
Expand Down
2 changes: 2 additions & 0 deletions test/libyul/yulInterpreterTests/datacopy.yul
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ object "main"
}
object "sub" { code { sstore(0, 1) } }
}
// ====
// bytecodeFormat: legacy
// ----
// Trace:
// Memory dump:
Expand Down
2 changes: 2 additions & 0 deletions test/libyul/yulInterpreterTests/dataoffset.yul
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ object "main"
}
object "sub" { code { sstore(0, 1) } }
}
// ====
// bytecodeFormat: legacy
// ----
// Trace:
// Memory dump:
Expand Down
2 changes: 2 additions & 0 deletions test/libyul/yulInterpreterTests/datasize.yul
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ object "main"
}
object "sub" { code { sstore(0, 1) } }
}
// ====
// bytecodeFormat: legacy
// ----
// Trace:
// Memory dump:
Expand Down
1 change: 1 addition & 0 deletions test/libyul/yulInterpreterTests/external_call_to_self.yul
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
}
// ====
// simulateExternalCall: true
// bytecodeFormat: legacy
// ----
// Trace:
// CALL(153, 0x11111111, 0, 64, 32, 256, 32)
Expand Down
2 changes: 2 additions & 0 deletions test/libyul/yulInterpreterTests/external_call_unexecuted.yul
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
let x := call(gas(), 0x45, 0x5, 0, 0x20, 0x30, 0x20)
sstore(0x64, x)
}
// ====
// bytecodeFormat: legacy
// ----
// Trace:
// CALL(153, 69, 5, 0, 32, 48, 32)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
let x := callcode(gas(), 0x45, 0x5, 0, 0x20, 0x30, 0x20)
sstore(100, x)
}
// ====
// bytecodeFormat: legacy
// ----
// Trace:
// CALLCODE(153, 69, 5, 0, 32, 48, 32)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
let x := delegatecall(gas(), 0x45, 0, 0x20, 0x30, 0x20)
sstore(100, x)
}
// ====
// bytecodeFormat: legacy
// ----
// Trace:
// DELEGATECALL(153, 69, 0, 32, 48, 32)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
}
// ====
// EVMVersion: >=byzantium
// bytecodeFormat: legacy
// ----
// Trace:
// STATICCALL(153, 69, 0, 32, 48, 32)
Expand Down
2 changes: 2 additions & 0 deletions test/libyul/yulInterpreterTests/long_obect_name.yul
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ object "t" {
}
}
}
// ====
// bytecodeFormat: legacy
// ----
// Trace:
// Memory dump:
Expand Down
1 change: 1 addition & 0 deletions test/libyul/yulInterpreterTests/pop_byte_shr_call.yul
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
}
// ====
// EVMVersion: >=constantinople
// bytecodeFormat: legacy
// ----
// Trace:
// CALL(0, 0, 0, 0, 0, 0, 0)
Expand Down
1 change: 1 addition & 0 deletions test/libyul/yulInterpreterTests/side_effect_free.yul
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
}
// ====
// EVMVersion: >=constantinople
// bytecodeFormat: legacy
// ----
// Trace:
// Memory dump:
Expand Down
1 change: 1 addition & 0 deletions test/libyul/yulInterpreterTests/zero_length_reads.yul
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
}
// ====
// EVMVersion: >=constantinople
// bytecodeFormat: legacy
// ----
// Trace:
// RETURNDATACOPY(0, 1, 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
}
// ====
// EVMVersion: >=constantinople
// bytecodeFormat: legacy
// ----
// Trace:
// RETURNDATACOPY(0, 1, 0)
Expand Down

0 comments on commit 4964479

Please sign in to comment.