Skip to content

WASM_X64: Support Integer Operations#1360

Merged
certik merged 2 commits into
lcompilers:mainfrom
ubaidsk:wasm_x64_int_operations
Dec 15, 2022
Merged

WASM_X64: Support Integer Operations#1360
certik merged 2 commits into
lcompilers:mainfrom
ubaidsk:wasm_x64_int_operations

Conversation

@ubaidsk

@ubaidsk ubaidsk commented Dec 13, 2022

Copy link
Copy Markdown
Collaborator

This PR adds support add, sub, mul and div operations in the wasm_x64 backend.

@ubaidsk

ubaidsk commented Dec 13, 2022

Copy link
Copy Markdown
Collaborator Author

Example:

$ cat examples/expr2.py 
def main0():
    print((2+3)*5)

main0()
$ lpython examples/expr2.py --backend wasm_x64 -o tmp
Call to print_i32() will be printed as exit code
Call to flush_buf() is not yet supported
$ ./tmp
$ echo $?
25
$ 

@ubaidsk ubaidsk marked this pull request as ready for review December 13, 2022 21:40
@ubaidsk

ubaidsk commented Dec 13, 2022

Copy link
Copy Markdown
Collaborator Author

This is ready. Please possibly review and please share feedback.

@certik certik merged commit aa90263 into lcompilers:main Dec 15, 2022
@ubaidsk ubaidsk deleted the wasm_x64_int_operations branch December 16, 2022 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants