-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #400 from Concordium/sign-extension
Add support for sign extension instructions.
- Loading branch information
Showing
26 changed files
with
376 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
;; The only purpose of this contract is to check | ||
;; whether i32.extend16_s instruction is allowed in the module. | ||
(module | ||
;; Init contract | ||
(func $init_contract (export "init_contract") (param i64) (result i32) | ||
(i32.extend16_s (i32.const 3)) | ||
(return (i32.const 0))) ;; Successful init | ||
) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
;; The only purpose of this contract is to check | ||
;; whether i32.extend8_s instruction is allowed in the module. | ||
(module | ||
;; Init contract | ||
(func $init_contract (export "init_contract") (param i64) (result i32) | ||
(i32.extend8_s (i32.const 3)) | ||
(return (i32.const 0))) ;; Successful init | ||
) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
;; The only purpose of this contract is to check | ||
;; whether i64.extend16_s instruction is allowed in the module. | ||
(module | ||
;; Init contract | ||
(func $init_contract (export "init_contract") (param i64) (result i32) | ||
(i64.extend16_s (i64.const 3)) | ||
(return (i32.const 0))) ;; Successful init | ||
) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
;; The only purpose of this contract is to check | ||
;; whether i64.extend32_s instruction is allowed in the module. | ||
(module | ||
;; Init contract | ||
(func $init_contract (export "init_contract") (param i64) (result i32) | ||
(i64.extend32_s (i64.const 3)) | ||
(return (i32.const 0))) ;; Successful init | ||
) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
;; The only purpose of this contract is to check | ||
;; whether i64.extend8_s instruction is allowed in the module. | ||
(module | ||
;; Init contract | ||
(func $init_contract (export "init_contract") (param i64) (result i32) | ||
(i64.extend8_s (i64.const 3)) | ||
(return (i32.const 0))) ;; Successful init | ||
) |
Binary file modified
BIN
+153 Bytes
(100%)
smart-contracts/wasm-chain-integration/benches/code/loop-energy.wasm
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ pub mod validate; | |
|
||
#[cfg(test)] | ||
mod metering_transformation_test; | ||
#[cfg(test)] | ||
mod tests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.