-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add semantic tests for Felt intrinsics (add, sub, mul, div, neg,
eq)
- Loading branch information
Showing
34 changed files
with
7,219 additions
and
27 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
(component | ||
;; Modules | ||
(module #add_felt | ||
;; Constants | ||
(const (id 0) 0x00100000) | ||
|
||
;; Global Variables | ||
(global (export #__stack_pointer) (id 0) (type i32) (const 0)) | ||
|
||
;; Functions | ||
(func (export #entrypoint) (param felt) (param felt) (result felt) | ||
(block 0 (param v0 felt) (param v1 felt) | ||
(let (v3 felt) (add.unchecked v0 v1)) | ||
(br (block 1 v3))) | ||
|
||
(block 1 (param v2 felt) | ||
(ret v2)) | ||
) | ||
) | ||
|
||
) |
Oops, something went wrong.